您的位置:首页 > 运维架构 > Linux

notepad++连接linux问题

2017-12-14 18:32 381 查看
用notepad++连接linux,首先你要确保你的notepad++所在的系统,和linux所在的系统在同一个局域网,(博主用的是win7系统),然后按照网上别的博主给的用notepad++连接liunx方法连接,会出现报错,错误如下:[SFTP] Connection failed : kex error : did not find one of algos diffie-hellman-group1-sha1 in list curve25519-sha256,curve25519-sha256@libssh.org,ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group16-sha512,diffie-hellman-group18-sha512,diffie-hellman-group14-sha256,diffie-hellman-group14-sha1 for kex algos 。具体是什么原因,博主也不懂。但是这个问题我是这样解决的:

首先进入下面的文件:

sudo vi /etc/ssh/sshd_config

然后在文件的末尾添加下面两行代码:

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

然后保存退出。重启linux系统就行了。博主亲测,连接成功
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: