Matt Spaulding
2007-Oct-04 10:44 UTC
[Net-ssh-users] [net-ssh-users] Connection trouble with SFTP
Hello, I''ve written a script to connect to a remote box with Net::SFTP, using an established Net::SSH connection. Here is the code: Net::SSH.start(host, user, password, :verbose => :debug, :paranoid => false) do |ssh| ssh.sftp.connect do |sftp| ** do some stuff here ** end end It appears that the script hangs when it runs "ssh.sftp.connect", and cannot get past this point. I''ve attached this failed connection as "fail-debug.txt". Also, I''ve attached "success-debug.txt" from running the script against a different box. The box that has the failure is an embedded PPC device. It has Linux kernel 2.4.20 installed, and OpenSSH 3.7.1 (as you can see from the debugging output). The other box is a standard x86 Fedora Core 6 box with OpenSSH 4.3 installed, and the connection is successful. I have tried connecting both with username and password, also with key authentication, and I run into the same situation. Any thoughts on where to look next? Thanks! -Matt -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: fail-debug.txt Url: http://rubyforge.org/pipermail/net-ssh-users/attachments/20071004/6a746df0/attachment-0002.txt -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: success-debug.txt Url: http://rubyforge.org/pipermail/net-ssh-users/attachments/20071004/6a746df0/attachment-0003.txt