include('Net/SFTP.php');
$sftp = new Net_SFTP($ftp_server,225);
if(!$sftp->login($ftp_user, $ftp_pass)){
print_r($sftp->getErrors());
exit('Login Failed');
}
我总是得到:
Notice: Unable to request pseudo-terminal in /www/asizi/lib/phpseclib/Net/SSH2.php on line 2239
Notice: Connection closed prematurely in /www/asizi/lib/phpseclib/Net/SSH2.php on line 2347
Array ( )
Login Failed
我的登录是正确的,如果我输入不正确,我只会得到:“登录失败”,没有错误/警告
phpseclib 版本:0.3.1
我过不去$sftp->login();
我哪里错了?