我使用Net::SSH::Perl连接到Qlogic交换机。当它失败时,显示以下错误:
代码:没有密钥算法在/usr/share/perl5/vendor_perl/Net/SSH/Perl/SSH2.pm第92行
use Net::SSH::Perl;
$ssh = Net::SSH::Perl->new("$switch_name", protocol=>'2,1',debug=>1);
$ssh->login("USER","$pw");
($stdout,$stderr,$exit) = $ssh->cmd("$cmd");
调试输出:myserver: Reading configuration data /export/home/ibmi1984/.ssh/config
myserver: Reading configuration data /etc/ssh_config
myserver: Connecting to HFDB12PF26A, port 22.
myserver: Remote protocol version 2.0, remote software version OpenSSH_6.7
myserver: Net::SSH::Perl Version 1.34, protocol version 2.0.
.yserver: No compat match: OpenSSH_6.7
myserver: Connection established.
myserver: Sent key-exchange init (KEXINIT), wait response.
No kex algorithm at /usr/share/perl5/vendor_perl/Net/SSH/Perl/SSH2.pm line 92
谁能帮我解决这个问题?同样的代码可以在其他设备上工作,只是这个设备有问题。
谢谢你,加里
通过将Net::SSH::Perl升级到v1.41修复了这个问题谢谢你的提示@daxim