winscp连接linux失败解决方法
2026/6/16 17:24:29 网站建设 项目流程

报错

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

需要专业的网站建设服务?

联系我们获取免费的网站建设咨询和方案报价,让我们帮助您实现业务目标

立即咨询