|
Posted by seng on March 15, 2005, 2:35 pm
Please log in for more thread options
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
OpenSSH_3.7p1
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,
use_pty=>0]);
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.
Any ideas?
TIA,
seng
|
| Similar Threads | Posted | | Help with Net::SFTP when sftp on unix works. | September 21, 2004, 11:14 am |
| Net::SFTP installation | January 12, 2005, 11:35 pm |
| Net::SFTP on Windows | March 21, 2005, 9:55 pm |
| Net::SFTP::Attributes | October 23, 2006, 11:56 am |
| problem using Net::SFTP with pubkey | September 1, 2005, 4:29 am |
| Net::SFTP port problem | July 26, 2004, 2:18 pm |
| Net::SFTP transfer speed | December 14, 2004, 8:14 am |
| net::sftp connection close | May 4, 2006, 6:27 am |
| NET::SFTP - how to close connection | September 28, 2006, 7:22 am |
| password in SFTP::Foreign | August 23, 2007, 11:48 am |
|