报错
couldn't agree a key exchange algorithm
couldnt agree a host key algorithm available rsa-sha2-512 rsa-sha2-256
解决方法:
bash
echo "KexAlgorithms +diffie-hellman-group14-sha1" >> /etc/ssh/sshd_config
echo "HostKeyAlgorithms +ssh-rsa" >> /etc/ssh/sshd_config
sudo systemctl restart sshd