安装ssh
# The remote system refused the connection. apt install openssh-server ps -ef | grep ssh查看有没有sshd
Key exchange failed.
vim /etc/ssh/sshd_config >>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 # root login >>#PermitRootLogin prohibit-password (注释掉) >>PermitRootLogin yes service sshd restart
标签:sha2,hellman,exchange,ecdh,ssh,diffie From: https://www.cnblogs.com/floud/p/16639822.html