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

  • A+
所属分类:Linux

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

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

kex error,Notepad++ NppFTP,SFTP Connection failed,shell,ubuntu,Ubuntu16.04,Ubuntu16.04 Notepad,xshell,[SFTP] Connection failed : kex error,服务器,Ubuntu16.04 Notepad++ NppFTP error :[SFTP] Connection failed : kex error : did not find one of algos diffie-hellman-group1-sha1 in list
解决方法:
通过xshell等ssh终端连接到ubuntu系统服务器后

vi /etc/ssh/sshd_config

按住shift键输入gg跳转到配置文件末尾
在文件末尾加入以下内容:

KexAlgorithms diffie-hellman-group1-sha1,curve25519-sha256@libssh.org,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

发表评论

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen: