rkg has asked for the wisdom of the Perl Monks concerning the following question:
I am trying to use SFTP on a win xp box.
I've loaded Net::SFTP via ppm from http://www.soulcage.net/ppds/.
When I use it, it logs in OK (and it correctly fails if handed an invalid username & password). After logging in, however, it hangs at "Sending SSH2_FXP_INIT"...
Can anyone suggest what I am doing wrong? Thanks.
Here is the script driving it
And here is the debug output:use strict; use Data::Dumper; use Net::SFTP; my $sftp = Net::SFTP->new('foo.com', user=>'bar', password=>'baz', debug=>1); $sftp->cd('boop'); $sftp->cd('blap'); $sftp->cd('blaz'); my @files = $sftp->ls; print Dumper(\@files);
And then it just hangs...denmark: Reading configuration data /.ssh/config denmark: Reading configuration data /etc/ssh_config denmark: Connecting to XXXXXXXX, port 22. denmark: Socket created, turning on blocking... denmark: Remote protocol version 1.99, remote software version OpenSSH +_3.4p1 denmark: Net::SSH::Perl Version 1.23, protocol version 2.0. denmark: No compat match: OpenSSH_3.4p1. denmark: Connection established. denmark: Sent key-exchange init (KEXINIT), wait response. denmark: Algorithms, c->s: 3des-cbc hmac-sha1 none denmark: Algorithms, s->c: 3des-cbc hmac-sha1 none denmark: Entering Diffie-Hellman Group 1 key exchange. denmark: Sent DH public key, waiting for reply. denmark: Received host key, type 'ssh-dss'. denmark: Host 'XXXXXXXX' is known and matches the host key. denmark: Computing shared secret key. denmark: Verifying server signature. denmark: Waiting for NEWKEYS message. denmark: Enabling incoming encryption/MAC/compression. denmark: Send NEWKEYS, enable outgoing encryption/MAC/compression. denmark: Sending request for user-authentication service. denmark: Service accepted: ssh-userauth. denmark: Trying empty user-authentication request. denmark: Authentication methods that can continue: publickey,password, +keyboard-interactive. denmark: Next method to try is publickey. denmark: Next method to try is password. denmark: Trying password authentication. denmark: Login completed, opening dummy shell channel. denmark: channel 0: new [client-session] denmark: Requesting channel_open for channel 0. denmark: channel 0: open confirm rwindow 0 rmax 32768 denmark: Got channel open confirmation, requesting shell. denmark: Requesting service shell on channel 0. denmark: channel 1: new [client-session] denmark: Requesting channel_open for channel 1. denmark: Sending subsystem: sftp denmark: Requesting service subsystem on channel 1. denmark: channel 1: open confirm rwindow 0 rmax 32768 denmark: sftp: Sending SSH2_FXP_INIT
Suggestions? Thanks
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: SFTP hangs (winxp)
by idsfa (Vicar) on Nov 09, 2003 at 05:52 UTC | |
by rkg (Hermit) on Nov 09, 2003 at 09:46 UTC | |
by idsfa (Vicar) on Nov 09, 2003 at 17:01 UTC | |
by rkg (Hermit) on Dec 07, 2003 at 14:12 UTC | |
by shenme (Priest) on Dec 10, 2003 at 05:26 UTC | |
by shenme (Priest) on Dec 10, 2003 at 05:55 UTC | |
| |
|
Re: SFTP hangs (winxp)
by shenme (Priest) on Nov 09, 2003 at 06:00 UTC | |
by cdlvj (Novice) on Aug 18, 2006 at 14:19 UTC | |
by cdlvj (Novice) on Oct 25, 2006 at 20:43 UTC | |
by ikegami (Patriarch) on Oct 25, 2006 at 21:02 UTC | |
by nessrapp (Initiate) on May 01, 2009 at 16:18 UTC | |
by nessrapp (Initiate) on May 05, 2009 at 14:13 UTC |