Do you have a question? Post it now! No Registration Necessary. Now with pictures!
March 15, 2005, 7:35 pm
rate this thread
I have a Windows machine attempting to start an sftp session with a
Linux OpenSSH host. I have Net::SSH::SFTP, Net::SSH::W32Perl and
required modules installed.
I get the following debug output:
dcasrv8: Connecting to ****.*********.com, port 22.
dcasrv8: Socket created, turning on blocking...
dcasrv8: Remote protocol version 2.0, remote software version
dcasrv8: Net::SSH::Perl Version 1.25, protocol version 2.0.
dcasrv8: No compat match: OpenSSH_3.7p1.
dcasrv8: Connection established.
<... eliminated for clarity ...>
dcasrv8: Login completed, opening dummy shell channel.
dcasrv8: channel 0: new [client-session]
dcasrv8: Requesting channel_open for channel 0.
dcasrv8: channel 0: open confirm rwindow 0 rmax 32768
dcasrv8: Got channel open confirmation, requesting shell.
dcasrv8: Requesting service shell on channel 0.
dcasrv8: channel 1: new [client-session]
dcasrv8: Requesting channel_open for channel 1.
Received disconnect message: Unsupported request (shell).
at C:/Perl/site/lib/Net/SSH/Perl/SSH2.pm line 281
The snippet of code that makes the call is this:
$sftp = Net::SFTP->new($SSH_HOST, user=>$SSH_USER,
password=>$SSH_PWD, debug=>1, ssh_args=> [protocol=>2, port=>$SSH_PORT,
Does the use_pty parameter control requests for a shell?
The host is accessible (and drops into an sftp shell!) from the same
machine using the same creds with an sftp client.