java.io.IOException: Key exchange was not finished, connection is closed.Cannot negotiate, proposa

ssh升级完报错:

java.io.IOException: Key exchange was not finished, connection is closed.Cannot negotiate, proposa_第1张图片

vi /etc/ssh/sshd_config
#最后一行

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,[email protected]

HostKeyAlgorithms ssh-dss,ssh-rsa


#重启ssh服务
service sshd restart

你可能感兴趣的:(linux,服务器)