vetrivel has asked for the wisdom of the Perl Monks concerning the following question:
I used net::SFTP in my program .
My program is ,
I have perl5.6.1 and perl5.8.0 version . In perl5.8.0 It works fine . Here the mentioned the log .use Net::SFTP ; $host = "hostName" ; %args = ( "user" => "vetri" , "password" => "vetri", "debug" => "true" ) ; my $sftp = Net::SFTP->new($host , %args); $sftp->put("2", "10");
But In perl5.6.1 I got segmentation Fault ErrorNet::SSH::Perl Version 1.34, protocol version 2.0 No compat match: OpenSSH_4.3p2 Debian-9 Connection established. Sent key-exchange init (KEXINIT), wait response Algorithms, c->s: 3des-cbc hmac-sha1 none Algorithms, s->c: 3des-cbc +hmac-sha1 none Entering Diffie-Hellman Group 1 key exchange. Sent DH public key, waiting for reply. Received host key, type 'ssh-dss'. Host '192.168.1.130' is known and matches the host key. Computing shared secret key. Verifying server signature. Waiting for NEWKEYS message. Send NEWKEYS. Enabling encryption/MAC/compression. Sending request for user-authentication service. Service accepted: ssh-userauth. Trying empty user-authentication request. Authentication methods that can continue: publickey,password. Next method to try is publickey. Next method to try is password. Trying password authentication. Login completed, opening dummy shell channel. channel 0: new [client-session] Requesting channel_open for channel 0. channel 0: open confirm rwindow 0 rmax 32768 channel 1: new [client-session] Requesting channel_open for channel 1. Sending subsystem: sftp Requesting service subsystem on channel 1. channel 1: open confirm rwindow 0 rmax 32768 sftp: Sending SSH2_FXP_INIT sftp: Remote version: 3
Reading configuration data /root/.ssh/config Reading configuration data /etc/ssh_config Allocated local port 1023. Connecting to 192.168.1.130, port 22. Remote protocol version 2.0, remote software version OpenSSH_4.3p2 De +bian-9 Net::SSH::Perl Version 1.34, protocol version 2.0. No compat match: OpenSSH_4.3p2 Debian-9. Connection established. Sent key-exchange init (KEXINIT), wait response. Algorithms, c->s: 3des-cbc hmac-sha1 none Algorithms, s->c: 3des-cbc hmac-sha1 none Segmentation Fault .
20090612 Janitored by Corion: Added formatting, code tags, as per Writeup Formatting Tips
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Net::SFTP in perl
by targetsmart (Curate) on Jun 11, 2009 at 09:07 UTC | |
Re: Net::SFTP in perl
by derby (Abbot) on Jun 11, 2009 at 13:37 UTC | |
by vetrivel (Sexton) on Jun 13, 2009 at 06:14 UTC | |
Re: Net::SFTP in perl
by vek (Prior) on Jun 11, 2009 at 22:15 UTC | |
Re: Net::SFTP in perl
by Khen1950fx (Canon) on Jun 12, 2009 at 05:32 UTC | |
by vetrivel (Sexton) on Jun 13, 2009 at 06:09 UTC | |
by Khen1950fx (Canon) on Jun 13, 2009 at 07:28 UTC | |
by vetrivel (Sexton) on Jun 13, 2009 at 07:43 UTC | |
by Khen1950fx (Canon) on Jun 14, 2009 at 00:39 UTC | |
| |
by vetrivel (Sexton) on Jun 17, 2009 at 06:35 UTC | |
by Khen1950fx (Canon) on Jun 17, 2009 at 09:15 UTC | |
by vetrivel (Sexton) on Jun 17, 2009 at 11:42 UTC |
Back to
Seekers of Perl Wisdom