Skip Menu |

This queue is for tickets about the Net-SSH-Perl CPAN distribution.

Report information
The Basics
Id: 39980
Status: resolved
Priority: 0/
Queue: Net-SSH-Perl

Owner: Nobody in particular
Requestors: kmcgrath [...]

Bug Information
Severity: Important
Broken in:
  • 1.31
  • 1.32
Fixed in: 1.33

Subject: shell not working in 1.31
Download (untitled) / with headers
text/plain 884b
When using the shell feature in in 1.31 I cannot connect to any ssh service. I cannot even get the pssh example to work as an interactive shell. Running a command works fine eg: pssh ls but if I run: pssh I authenticate successfully then the connection closes. I know it is getting to this for loop in client_loop in for my $a (@$rready) { if ($a == $ssh->{session}{sock}) { my $buf; my $len = sysread $a, $buf, 8192; $ssh->break_client_loop if $len == 0; ($buf) = $buf =~ /(.*)/s; ## Untaint data. Anything allowed. $ssh->incoming_data->append($buf); } It seems that $ssh->break_client_loop if $len == 0; is always true for any connection that I make. If I reinstall 1.30 everything works again. Thanks, Kevin McGrath
Subject: shell not working in 1.31 and 1.32
Download (untitled) / with headers
text/plain 1.8k
pssh not working in 1.31 or 1.32. The connection disconnects as soon as authentication finishes. replaced the ip address with SERVER and my username with USERNAME: ./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 Net::SSH::Perl Version 1.32, protocol version 2.0. No compat match: OpenSSH_4.7. Connection established. Sent key-exchange init (KEXINIT), wait response. Algorithms, c->s: 3des-cbc hmac-sha1 none Algorithms, s->c: 3des-cbc hmac-sha1 none Entering Diffie-Hellman Group 1 key exchange. Sent DH public key, waiting for reply. Received host key, type 'ssh-dss'. Host 'SERVER' is known and matches the host key. Computing shared secret key. Verifying server signature. Waiting for NEWKEYS message. Enabling incoming encryption/MAC/compression. Send NEWKEYS, enable outgoing encryption/MAC/compression. Sending request for user-authentication service. Service accepted: ssh-userauth. Trying empty user-authentication request. Authentication methods that can continue: publickey,password,keyboard-interactive. Next method to try is publickey. Next method to try is password. Trying password authentication. USERNAME@SERVER's password: Login completed, opening dummy shell channel. channel 0: new [client-session] Requesting channel_open for channel 0. channel 0: open confirm rwindow 0 rmax 32768 Got channel open confirmation, requesting shell. Requesting service shell on channel 0. channel 1: new [client-session] Requesting channel_open for channel 1. Entering interactive session. Requesting service pty-req on channel 1. Requesting shell. Requesting service shell on channel 1. channel 1: open confirm rwindow 0 rmax 32768 Connection to closed.
Fixed in 1.33

This service is sponsored and maintained by Best Practical Solutions and runs on infrastructure.

Please report any issues with to