问题描述:
在使用pycharm进行远程调试设置SFTP时报错Unable to reach a settlement: [diffie-hellman-group1-sha1, diffie-hellman-group-exchange-sha1] and…
原因分析:
OpenSSH在6.7p1版本之后默认不再采用diffie-hellman-group1-sha1和diffie-hellman-group-exchange-sha1密钥交换算法算法,需要手工添加。
解决方案:
在服务器/etc/ssh/sshd_config添加以下内容:
KexAlgorithms diffie-hellman-group1-sha1,diffie-hellman-group14-sha1,diffie-hellman-group-exchange-sha1,diffie-hellman-group-exchange-sha256,ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group1-sha1,curve25519-sha256@libssh.org
使用service sshd restart命令重启
|