且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

注意:找不到与客户端加密算法兼容的服务器

更新时间:2023-11-22 08:33:58

这篇文章



因此,phpseclib可以通过查看哪些对象密钥算法来确定哪些对称密钥算法是可包含的。以下链接说明了如何完成:

https://github.com/phpseclib/phpseclib/blob/efd3b96dc8e378a5155cb42f4869de85f4153135/phpseclib/Net/SSH2.php#L1110



如果你使用PHP 5.4,那么它基本上是在 stream_resolve_include_path('Crypt / RC4.php )。如果PHP不认为它是可以包含的,那就是难以争辩的。


可能是你的 include_path 也没有正确设置。


I'm using PHPSecLib for SSH connection through PHP but I have this error :

Notice: No compatible server to client encryption algorithms found in C:\Program Files (x86)\EasyPHP-DevServer-14.1VC9\data\localweb\nodejs\includes\classes\net\Net\SSH2.php on line 1170

Why ?

Thanks

Quoting 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.

Could be your include_path that's not correctly set as well.