无法使用Net_SFTP连接到远程SFTP服务器

时间:2019-08-28 19:16:03

标签: php sftp

我正在尝试使用以下方式连接到远程服务器:

$sftp = new Net_SFTP($sftp_server,$port_no);  

$port_no$sftp_server是正确的。我可以使用FileZilla将其用于SFTP到服务器。

但是,使用Net_SFTP时,$sftp->login失败。
我收到错误消息:

Cannot connect to $sftp_server:$port_no. Error -446736096. Unable to find the socket transport "https" - did you forget to enable it when you configured PHP?

我做$sftp->getLog()时是空白。

0 个答案:

没有答案
相关问题