ssh
安装ssh
# The remote system refused the connection. apt install openssh-server ps -ef | grep ssh查看有没有sshd
远程登录到1.2.3.4,用户yanfa
ssh yanfa@1.2.3.4 # 输入密码
断开ssh连接
exit
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