码迷,mamicode.com
首页 > Web开发 > 详细

PhpStorm: Algorithm negotiation fail

时间:2015-07-02 19:42:45      阅读:342      评论:0      收藏:0      [点我收藏+]

标签:

事情是酱紫的,我用 phpstorm 通过 sftp 协议连接我一台服务器的时候报错


Algorithm negotiation fail

第一次遇到这个问题, 并通过 stackoverflow 搜索解决.

解决方法

  1. 编辑 /etc/ssh/sshd_config 文件


    vim /etc/ssh/sshd_config

  2. 在文件末尾加入如下配置(首先确认配置文件不存在该配置项)


    KexAlgorithms curve25519-sha256@libssh.org,ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group14-sha1,diffie-hellman-group1-sha1

  3. 重启 sshd


    serivce sshd restart

PhpStorm: Algorithm negotiation fail

标签:

原文地址:http://my.oschina.net/768272516/blog/473662

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!