[Ssh-sftp-perl-users] eg/remoteinteract2.pl
Brought to you by:
dbrobins
From: Lee, P. K <Phi...@ba...> - 2004-05-26 14:15:38
|
am trying out the example in the module eg/remoteinteract2.pl and it did not work.=20 =20 I got this error message straight away: =20 $ perl original.pl cr-dev1: Reading configuration data /export/home/plee/.ssh/config cr-dev1: Reading configuration data /etc/ssh_config cr-dev1: Connecting to cr-jumpstart, port 22. cr-dev1: Remote protocol version 1.99, remote software version OpenSSH_3.7.1p1 cr-dev1: Net::SSH::Perl Version 1.25, protocol version 2.0. cr-dev1: No compat match: OpenSSH_3.7.1p1. cr-dev1: Connection established. cr-dev1: Sent key-exchange init (KEXINIT), wait response. cr-dev1: Algorithms, c->s: 3des-cbc hmac-sha1 none cr-dev1: Algorithms, s->c: 3des-cbc hmac-sha1 none cr-dev1: Entering Diffie-Hellman Group 1 key exchange. cr-dev1: Sent DH public key, waiting for reply. cr-dev1: Received host key, type 'ssh-dss'. cr-dev1: Host 'cr-jumpstart' is known and matches the host key. cr-dev1: Computing shared secret key. cr-dev1: Verifying server signature. cr-dev1: Waiting for NEWKEYS message. cr-dev1: Enabling incoming encryption/MAC/compression. cr-dev1: Send NEWKEYS, enable outgoing encryption/MAC/compression. cr-dev1: Sending request for user-authentication service. cr-dev1: Service accepted: ssh-userauth. cr-dev1: Trying empty user-authentication request. cr-dev1: Authentication methods that can continue: publickey,password,keyboard-interactive. cr-dev1: Next method to try is publickey. cr-dev1: Next method to try is password. cr-dev1: Trying password authentication. cr-dev1: Login completed, opening dummy shell channel. cr-dev1: channel 0: new [client-session] cr-dev1: Requesting channel_open for channel 0. cr-dev1: channel 0: open confirm rwindow 0 rmax 32768 cr-dev1: Got channel open confirmation, requesting shell. cr-dev1: Requesting service shell on channel 0. cr-dev1: channel 1: new [client-session] cr-dev1: Requesting channel_open for channel 1. cr-dev1: Entering interactive session. cr-dev1: Sending command: passwd plee cr-dev1: Requesting service exec on channel 1. cr-dev1: channel 1: open confirm rwindow 0 rmax 32768 cr-dev1: input_channel_request: rtype exit-status reply 0 cr-dev1: channel 1: rcvd eof cr-dev1: channel 1: output open -> drain cr-dev1: channel 1: rcvd close cr-dev1: channel 1: input open -> closed cr-dev1: channel 1: close_read STDERR: Permission denied =20 cr-dev1: channel 1: obuf empty cr-dev1: channel 1: output drain -> closed cr-dev1: channel 1: close_write cr-dev1: channel 1: send close cr-dev1: channel 1: full closed $ I printed the $buffer->bytes in the register-handler sub routine for the STDERR. Why do i get the error message straight away instead of the prompt?? I am running Solaris 8 on sparc machine. =20 ____________________________ Philip Lee International: +44 20 8760 6633 Internal: 66633 =20 Notice to recipient: The information in this internet e-mail and any attachments is = confidential and may be privileged. It is intended solely for the = addressee. If you are not the intended addressee please notify the = sender immediately by telephone. If you are not the intended recipient, = any disclosure, copying, distribution or any action taken or omitted to = be taken in reliance on it, is prohibited and may be unlawful. When addressed to external clients any opinions or advice contained in = this internet e-mail are subject to the terms and conditions expressed = in any applicable governing terms of business or client engagement = letter issued by the pertinent Bank of America group entity. If this email originates from the U.K. please note that Bank of America, = N.A., London Branch, Banc of America Securities Limited and Banc of = America Futures Incorporated are regulated by the Financial Services = Authority. |