Ubuntu16.04 Notepad++ NppFTP error :[SFTP] Connection failed : kex error : did not find one of algos diffie-hellman-group1-sha1 in list

作者: 站长 上传时间: 浏览: N/A 下载: N/A 格式: N/A 评分: N/A

使用Notepad++ NppFTP插件通过sftp方式连接到ubuntu16.04.4系统服务器出现无法连接,提示错误信息如下:

[SFTP] Connection failed : kex error : did not find one of algos diffie-hellman-group1-sha1 in list [email protected],ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group14-sha1 for kex algos
Unable to connect


解决方法:
通过xshell等ssh终端连接到ubuntu系统服务器后
vi /etc/ssh/sshd_config
按住shift键输入gg跳转到配置文件末尾
在文件末尾加入以下内容:
KexAlgorithms diffie-hellman-group1-sha1,[email protected],ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group14-sha1
Ciphers 3des-cbc,blowfish-cbc,aes128-cbc,aes128-ctr,aes256-ctr

然后重启ssh服务
service sshd restart

然后即可通过Notepad++的NappFTP连接到服务器

附:ubuntu查看版本号命令,与centos有点儿区别
cat /etc/issue

Leave a Comment