我使用 PHPSecLib 通过 PHP 进行 SSH 连接,但出现此错误:
注意:在第 1170 行的 C:\Program Files (x86)\EasyPHP-DevServer-14.1VC9\data\localweb\nodejs\includes\classes\net\Net\SSH2.php 中找不到兼容的服务器到客户端加密算法
为什么?
谢谢
最佳答案
引用this post ,
So phpseclib determines which symmetric key algorithms it can use by seeing which ones are includable. The following links demonstrate how this is done:
https://github.com/phpseclib/phpseclib/blob/efd3b96dc8e378a5155cb42f4869de85f4153135/phpseclib/Net/SSH2.php#L1110 https://github.com/phpseclib/phpseclib/blob/efd3b96dc8e378a5155cb42f4869de85f4153135/phpseclib/Net/SSH2.php#L3775
If you're using PHP 5.4 then it's essentially doing
stream_resolve_include_path('Crypt/RC4.php')
. If PHP doesn't think it's includable than it's hard to argue with that.
可能是您的 include_path
设置不正确。
关于php - 通知: No compatible server to client encryption algorithms found in,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23641948/