[Ssh-sftp-perl-users] shell not working in 1.31/1.32
Brought to you by:
dbrobins
From: Kevin M. <kmc...@ba...> - 2008-10-20 17:27:57
|
Starting with version 1.31 I have not been able to get either the shell method or the pssh application to run correctly. I cannot get an interactive shell to work, Net::SSH::Perl disconnects almost immediately after authentication has been completed. Running a remote command however, is successful. I have tried on a variety of solaris and linux servers so far, all with the same result: Verbose Output for INTERACTIVE SHELL: USERNAME@whippet ~ $ ./pssh -v SERVER whippet: Reading configuration data /home/USERNAME/.ssh/config whippet: Reading configuration data /etc/ssh_config whippet: Connecting to SERVER, port 22. whippet: Remote protocol version 2.0, remote software version OpenSSH_4.7 whippet: Net::SSH::Perl Version 1.32, protocol version 2.0. whippet: No compat match: OpenSSH_4.7. whippet: Connection established. whippet: Sent key-exchange init (KEXINIT), wait response. whippet: Algorithms, c->s: 3des-cbc hmac-sha1 none whippet: Algorithms, s->c: 3des-cbc hmac-sha1 none whippet: Entering Diffie-Hellman Group 1 key exchange. whippet: Sent DH public key, waiting for reply. whippet: Received host key, type 'ssh-dss'. whippet: Host 'SERVER' is known and matches the host key. whippet: Computing shared secret key. whippet: Verifying server signature. whippet: Waiting for NEWKEYS message. whippet: Enabling incoming encryption/MAC/compression. whippet: Send NEWKEYS, enable outgoing encryption/MAC/compression. whippet: Sending request for user-authentication service. whippet: Service accepted: ssh-userauth. whippet: Trying empty user-authentication request. whippet: Authentication methods that can continue: publickey,password,keyboard-interactive. whippet: Next method to try is publickey. whippet: Next method to try is password. whippet: Trying password authentication. USERNAME@SERVER's password: whippet: Login completed, opening dummy shell channel. whippet: channel 0: new [client-session] whippet: Requesting channel_open for channel 0. whippet: channel 0: open confirm rwindow 0 rmax 32768 whippet: Got channel open confirmation, requesting shell. whippet: Requesting service shell on channel 0. whippet: channel 1: new [client-session] whippet: Requesting channel_open for channel 1. whippet: Entering interactive session. whippet: Requesting service pty-req on channel 1. whippet: Requesting shell. whippet: Requesting service shell on channel 1. whippet: channel 1: open confirm rwindow 0 rmax 32768 Connection to SERVER closed. (I never get a prompt, connection is closed almost instantly after entering password) --------------------------- Verbose Output for running a remote command: USERNAME@whippet ~ $ ./pssh -v SERVER "uname -a" whippet: Reading configuration data /home/USERNAME/.ssh/config whippet: Reading configuration data /etc/ssh_config whippet: Connecting to SERVER, port 22. whippet: Remote protocol version 2.0, remote software version OpenSSH_4.7 whippet: Net::SSH::Perl Version 1.32, protocol version 2.0. whippet: No compat match: OpenSSH_4.7. whippet: Connection established. whippet: Sent key-exchange init (KEXINIT), wait response. whippet: Algorithms, c->s: 3des-cbc hmac-sha1 none whippet: Algorithms, s->c: 3des-cbc hmac-sha1 none whippet: Entering Diffie-Hellman Group 1 key exchange. whippet: Sent DH public key, waiting for reply. whippet: Received host key, type 'ssh-dss'. whippet: Host 'SERVER' is known and matches the host key. whippet: Computing shared secret key. whippet: Verifying server signature. whippet: Waiting for NEWKEYS message. whippet: Enabling incoming encryption/MAC/compression. whippet: Send NEWKEYS, enable outgoing encryption/MAC/compression. whippet: Sending request for user-authentication service. whippet: Service accepted: ssh-userauth. whippet: Trying empty user-authentication request. whippet: Authentication methods that can continue: publickey,password,keyboard-interactive. whippet: Next method to try is publickey. whippet: Next method to try is password. whippet: Trying password authentication. USERNAME@SERVER's password: whippet: Login completed, opening dummy shell channel. whippet: channel 0: new [client-session] whippet: Requesting channel_open for channel 0. whippet: channel 0: open confirm rwindow 0 rmax 32768 whippet: Got channel open confirmation, requesting shell. whippet: Requesting service shell on channel 0. whippet: channel 1: new [client-session] whippet: Requesting channel_open for channel 1. whippet: Entering interactive session. whippet: Sending command: uname -a whippet: Requesting service exec on channel 1. whippet: channel 1: open confirm rwindow 0 rmax 32768 whippet: input_channel_request: rtype exit-status reply 0 whippet: channel 1: rcvd eof whippet: channel 1: output open -> drain whippet: channel 1: rcvd close whippet: channel 1: input open -> closed whippet: channel 1: close_read whippet: channel 1: obuf empty whippet: channel 1: output drain -> closed whippet: channel 1: close_write whippet: channel 1: send close whippet: channel 1: full closed Linux greatdane 2.6.18-gentoo-r6 #1 SMP Thu Jan 11 20:49:54 EST 2007 i686 Pentium III (Coppermine) GenuineIntel GNU/Linux -Kevin |