PhpStorm: Algorithm negotiation fail

WBOY
Release: 2016-06-23 13:31:42
Original
1390 people have browsed it

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

<br />Algorithm negotiation fail
Copy after login

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

解决方法

编辑 /etc/ssh/sshd_config 文件

<br />vim /etc/ssh/sshd_config
Copy after login

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

<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
Copy after login

重启 sshd

<br />serivce sshd restart
Copy after login

source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!