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

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

1
2
[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


解决方法:
通过xshell等ssh终端连接到ubuntu系统服务器后

1
vi /etc/ssh/sshd_config

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

1
2
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服务

1
service sshd restart

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

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

1
cat /etc/issue
原文链接:https://xiaohost.com/2810.html,转载请注明出处。
0

评论0

请先