我正在尝试使用以下方式连接到远程服务器:
$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()
时是空白。