I found some random code, try it (use the whole class)
ssh2_auth_pubkey_file https://github.com/mayararajesh/torque/blob/master/protected/components/SSH.php#L81
ssh2_scp_send https://github.com/mayararajesh/torque/blob/master/protected/components/SSH.php#L95
ssh2_disconnect https://github.com/mayararajesh/torque/blob/master/protected/components/SSH.php#L280
ssh2_auth_pubkey_file https://github.com/mayararajesh/torque/blob/master/protected/components/SSH.php#L81
ssh2_scp_send https://github.com/mayararajesh/torque/blob/master/protected/components/SSH.php#L95
ssh2_disconnect https://github.com/mayararajesh/torque/blob/master/protected/components/SSH.php#L280
Regards,
José NobileOn Sat, Feb 6, 2021 at 9:09 PM David Spector <david025@xxxxxxxxxxxxxxxxxxxxxx> wrote:
Eric, Thank you for all your work. Shows how uninterested the world is
in having good secure file copying in PHP.
But after I changed the end of the program to
ssh2_disconnect($sftp);
ssh2_disconnect($connection);
the same error happens (a browser timeout). Are you sure these two
statements are correct?
David