Я пытаюсь подключиться к FTP с помощью следующего кода на PHP
Код: Выделить всё
$connection = ssh2_connect($host, $port);
ssh2_auth_password($connection, $user, $password);
$sftp = ssh2_sftp($connection);
When I try connecting via the linux command line, I get the error
Код: Выделить всё
Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: from
Could not chdir to home directory /xxx/xxx/./xxx/xxxx/xxx: No such file or directory
Connection to closed.
Источник: https://stackoverflow.com/questions/781 ... d-of-hangi