Connecting using Net::SFTP (General questions)
I'm attempting to connect to a WeOnlyDo SFTP server using perl's Net::SFTP module. The script works against a OpenSSH server. Against the WeOnlyDo server I get hung on 'Waiting for NEWKEYS message':
Debug output:
local_machine: Reading configuration data /home/transfer/.ssh/config
local_machine: Reading configuration data /etc/ssh_config
local_machine: Connecting to xxx.xxx.xxx.xxx, port 22.
local_machine: Remote version string: SSH-2.0-WeOnlyDo-wodFTPD 2.1.8.98
local_machine: Remote protocol version 2.0, remote software version WeOnlyDo-wodFTPD 2.1.8.98
local_machine: Net::SSH::Perl Version 1.30, protocol version 2.0.
.plxdmz01: No compat match: WeOnlyDo-wodFTPD 2.1.8.98
local_machine: Connection established.
local_machine: Sent key-exchange init (KEXINIT), wait response.
local_machine: Algorithms, c->s: 3des-cbc hmac-sha1 none
local_machine: Algorithms, s->c: 3des-cbc hmac-sha1 none
local_machine: Entering Diffie-Hellman Group 1 key exchange.
local_machine: Sent DH public key, waiting for reply.
local_machine: Received host key, type 'ssh-rsa'.
local_machine: Host 'xxx.xxx.xxx.xxx' is known and matches the host key.
local_machine: Computing shared secret key.
local_machine: Verifying server signature.
local_machine: Waiting for NEWKEYS message.
Is there some incompatability, or a parameter I need to set?
Re: Connecting using Net::SFTP
Hi Justin,
Can you please update the component to the latest version?
Also, if this issue occurs when using the latest version, could you please send us a sample which we could run on our side so we could reproduce the issue on our side?
Regards,
Damba
Re: Connecting using Net::SFTP
I don't own the server. I will ask them to update, but I don't have any control over it.
here is my script:
#!/usr/bin/perl
use Net::SFTP;
my $host = 'xxx.xxx.xxx.xx';
$user = 'yyyyyyyy';
$password = 'zzzzzzzz';
my $sftp = Net::SFTP->new($host,('user' => $user,
'password' => $password,
'debug' => 'true')
);
my @files = $sftp->ls('./');
foreach $filehash (@files) {
print Found file .$filehash->{'filename'}.
;
print longname .$filehash->{'longname'}.
;
It hangs long before any authentication.
Re: Connecting using Net::SFTP
Justin,
I'm not that good with Perl. I tried to install Net::SFTP using CPAN by doing
install Net::SFTP
but I keep getting a lot of make errors (it did want to install many unmet dependencies).
Is there some already setup package I could run? Or, can I connect from your server?
Kreso
Re: Connecting using Net::SFTP
Justin,
I'm not that good with Perl. I tried to install Net::SFTP using CPAN by doing
install Net::SFTP
but I keep getting a lot of make errors (it did want to install many unmet dependencies).
I had to force Convert::PEM
Is there some already setup package I could run? Or, can I connect from your server?
Kreso
I have a personal server we can use to debug (I cannot give you access to our corporate servers).
Contact me directly - username jbalcorn.
AIM: jbalcorn00
ICQ: 318523610
Re: Connecting using Net::SFTP
Justin,
I've managed to install Net::SFTP and.. it works ok for me. I do eventually send NEWKEYS packet and it seems to be ok.
If your problem still persists (it was slow - you may need to put some larger timeout?) can we somehow meet (ICQ is ok), but not sooner than monday since we're out of town this week?
Kreso
Re: Connecting using Net::SFTP
Justin,
I've managed to install Net::SFTP and.. it works ok for me. I do eventually send NEWKEYS packet and it seems to be ok.
If your problem still persists (it was slow - you may need to put some larger timeout?) can we somehow meet (ICQ is ok), but not sooner than monday since we're out of town this week?
Kreso
Email me monday, and we'll jump on ICQ and debug this. (Email first - IM is against policy so I have to set it up special.)
Re: Connecting using Net::SFTP
I'm all setup - let me know when/where we can meet. You email doesn't seem to be valid in this user profile.
Kreso
Re: Connecting using Net::SFTP
I'm all setup - let me know when/where we can meet. You email doesn't seem to be valid in this user profile.
Kreso
I worked with Kreso. Turns out the server is grof's freeFTPD, and is using old libraries.
However, even with a real wodFTPD the Net::SFTP library tries to open a second channel and wodFTPD denies it, so there may be more problems.
I fixed my profile . Sorry about that.
Re: Connecting using Net::SFTP
Justin,
We didn't receive your reply just quote from last Kreso post.
Can you please resend it if you want to ask something.
Drazen
Re: Connecting using Net::SFTP
Justin,
I have requested authorization on your AIM account.
Kreso
Re: Connecting using Net::SFTP
I'm all setup - let me know when/where we can meet. You email doesn't seem to be valid in this user profile.
Kreso
Sorry, I forgot the .com
I'm available at
AIM: jbalcorn00
ICQ 318523610
Re: Connecting using Net::SFTP
I'm haved same issue.
I'm attempting to connect to a WeOnlyDo SFTP server using perl's Net::SFTP module. The script works against a OpenSSH server. Against the WeOnlyDo server I get hung on 'Waiting for NEWKEYS message'...
If there is a decision, it is possible to describe it at this forum? In advance many thanks!
Andrey.
Re: Connecting using Net::SFTP
Andrey,
yes - all worked ok.. Customer reported issue about FreeSSHd which uses older version of wodFTPServer.
Component behaves correctly, issue he reports was fixed a year ago.
Regards,
Kreso
Re: Connecting using Net::SFTP
Firstly - thaks you very much for quickly answer!
Unfortunately, to me it is not absolutely clear, about what components there is a speech.
Below list number version which use me:
freeSSHd version 1.1c
Net-SFTP [0.1] Secure File Transfer Protocol client
Net-SFTP-Foreign [0.61] Secure File Transfer Protocol client
Net-SSH [0.08] Perl extension for secure shell
Net-SSH-Perl [1.30] Perl client interface to SSH
Net-SSH-W32Perl [0.05] Win32 (ActivePerl) Compatibility Layer for Net::SSH::Perl
Thank your for help!
.. Customer reported issue about FreeSSHd which uses older version of wodFTPServer.
Component behaves correctly, issue he reports was fixed a year ago.
Regards,
Kreso
Re: Connecting using Net::SFTP
We do not provide here support for freesshd/freeftpd - you will have to ask it in their forums.
I can only help for wodFTPServer/wodSSHServer - if our samples with those components cause you trouble, then I'm here and will be happy to help.
Is this the case?
Regards,
Kreso