出现错误
1 | Key exchange failed. |
解决方法
问题分析,新系统加密验证方式旧版本ssh客户端软件不支持,进行修改即可。vi /etc/ssh/sshd_config在最下方空白输入
1 | KexAlgorithms curve25519-sha256@libssh.org,ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group14-sha1,diffie-hellman-group-exchange-sha1,diffie-hellman-group1-sha1 |
之后重启ssh服务sudo service ssh restart