I am transferring files from PHP and SSH2 to a remote server.
I use this:
$connection = ssh2_connect('shell.example.com', 22); ssh2_auth_password($connection, 'username', 'password'); ssh2_scp_send($connection, '/local/filename', '/remote/filename', 0644);
But sometimes the file on the remote server is incomplete. I have an assumption that SSH2 is not transmitting EOF or anything else.
Do you have any ideas or solutions?
source share