The Error which I am geting is --########################################## #!/usr/local/bin/perl use Net::SSH::Perl; use strict; my $host = "***********"; print $ENV{"HOME"}."\n"; my %params=( identity_files =>["/home/vendor2/.ssh/id_dsa"],protocol=> +'2',debug => 1); my $ssh = Net::SSH::Perl->new($host,%params); $ssh->login("vendor1") ; my $cmd = "ls -ltr "; my ($stdout) = $ssh->cmd($cmd); print $stdout; ##########################################
If i manually do sftp from command line from Vendor2 to Vendor1, I easily pass thru to vendor1..Myserver: Reading configuration data /home/hygtest/.ssh/config Myserver: Reading configuration data /etc/ssh_config Myserver: Connecting to **********, port 22. Myserver: Remote protocol version 1.99, remote software version OpenSS +H_3.8.1p1 Myserver: Net::SSH::Perl Version 1.28, protocol version 2.0. Myserver: No compat match: OpenSSH_3.8.1p1. Myserver: Connection established. Myserver: Sent key-exchange init (KEXINIT), wait response. Myserver: Algorithms, c->s: 3des-cbc hmac-sha1 none Myserver: Algorithms, s->c: 3des-cbc hmac-sha1 none Myserver: Entering Diffie-Hellman Group 1 key exchange. Myserver: Sent DH public key, waiting for reply. Myserver: Received host key, type 'ssh-dss'. Myserver: Permanently added '*********' to the list of known hosts. Myserver: Computing shared secret key. Myserver: Verifying server signature. Key verification failed for server host key at /usr/opt/perl5/lib64/si +te_perl/5.8.0/Net/SSH/Perl/SSH2.pm line 87 #######################################
In reply to Net::SFTP Problem by Zoop
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |