作者:手机用户2502927203 | 来源:互联网 | 2023-05-21 11:44
我有一个远程服务器来托管我的项目.我在本地使用我的PhpStorm,因此每次保存时,它都会自动与远程服务器同步.
但是,我无法配置PhpStorm以在远程服务器上运行PHPUnit.
在Configure Remote PHP Interpreter
我填写正确的信息(主机,用户名和密码).
我遇到的错误是"Algorithm negotiation fail"
当我验证并"Test SFTP Connection: Connection to 'id address' failed. Connection failed"
尝试指定PHP解释器的路径时.
我该如何解决这个问题?
1> 小智..:
我有同样的问题.我通过添加解决了这个问题
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
至
/etc/ssh/sshd_config
然后,我重启sshd
sudo systemctl restart sshd
Actualy`KoxAlgorithms diffie-hellman-group1-sha1`就够了(对我来说至少)
2> 小智..:
刚刚将Ubuntu升级到16.04并遇到了这个问题,PHPStorm 8.0.3中的"算法协商失败".
问题出在jsch-0.1.51.jar库中.如果用最新的https://sourceforge.net/projects/jsch/(目前为jsch-0.1.54.jar)覆盖jsch-0.1.51.jar文件并重新启动,则应该没问题.无需为ssh守护程序添加不安全的算法.