winscp连接linux失败解决方法

winscp连接linux失败解决方法

报错

couldn't agree a key exchange algorithm

couldnt agree a host key algorithm available rsa-sha2-512 rsa-sha2-256

解决方法:

echo "KexAlgorithms +diffie-hellman-group14-sha1" >> /etc/ssh/sshd_config echo "HostKeyAlgorithms +ssh-rsa" >> /etc/ssh/sshd_config sudo systemctl restart sshd