>  기사  >  백엔드 개발  >  PhpStorm: Algorithm negotiation fail

PhpStorm: Algorithm negotiation fail

WBOY
WBOY원래의
2016-06-23 13:31:421393검색

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

<br />Algorithm negotiation fail

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

解决方法

编辑 /etc/ssh/sshd_config 文件

<br />vim /etc/ssh/sshd_config

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

<br />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

重启 sshd

<br />serivce sshd restart

성명:
본 글의 내용은 네티즌들의 자발적인 기여로 작성되었으며, 저작권은 원저작자에게 있습니다. 본 사이트는 이에 상응하는 법적 책임을 지지 않습니다. 표절이나 침해가 의심되는 콘텐츠를 발견한 경우 admin@php.cn으로 문의하세요.