php - 通知: No compatible server to client encryption algorithms found in

标签 php encryption phpseclib

我使用 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/

相关文章:

php - 上传时无法创建临时文件

php - 从数据库表生成新闻

php - 更改 WooCommerce 'xyz' 类别页面上显示的产品数量

php - 显示MySQL表中具有特定id的多个字段的数据

php - 无法使用 phpseclib 类

android - 阅读 whatsapp 消息

java - Android KeyStore 加密和解密数据

c - C 程序中的段错误

php - 使用 phpseclib 通过 SSH 运行 wp-cli 命令