主机:Windows 7 + SSH Secure Shell (Version3.2.9)
虚拟机:VMware + Ubuntu 16.04
在SSH Secure Shell上执行Connect to Remote Host时出现"Algorithm negotiation failed"警告
搜索一番后发现原因:SSH升级后,为了安全,默认不再采用原来的一些加密算法,需要手动添加。
1、在/etc/ssh/sshd_config的结尾添加增加如下配置:
sudo vi /etc/ssh/sshd_config
Ciphers aes128-cbc,aes192-cbc,aes256-cbc,aes128-ctr,aes192-ctr,aes256-ctr,3des-cbc
MACs hmac-md5,hmac-sha1,umac-64@openssh.com,hmac-sha1-96,hmac-md5-96
KexAlgorithms diffie-hellman-group1-sha1,diffie-hellman-group14-sha1,diffie-hellman-group-exchange-sha1,diffie-hellman-group-exchange-sha256,ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group1-sha1,curve25519-sha256@libssh.org
2、重启
systemctl restart sshd.service
3、开机自启:
systemctl enable sshd.service
4、查看启动状态
systemctl status sshd.service