ssh报错:server responded "algorithm negotiation failed"
原因是SSH升级后,为了安全,默认不再采用原来的一些加密算法,需要手动添加
1、在/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