事情是酱紫的,我用 phpstorm 通过 sftp 协议连接我一台服务器的时候报错
<br />Algorithm negotiation fail
编辑 /etc/ssh/sshd_config 文件
<br />vim /etc/ssh/sshd_config
在文件末尾加入如下配置(首先确认配置文件不存在该配置项)
立即学习“PHP免费学习笔记(深入)”;
<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
每个人都需要一台速度更快、更稳定的 PC。随着时间的推移,垃圾文件、旧注册表数据和不必要的后台进程会占用资源并降低性能。幸运的是,许多工具可以让 Windows 保持平稳运行。
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号