I have live site is running with below location like
/cloud/domains/live/domains/domain.com/http
If I transfer file less than 10 KB it's working fine. But when I transfer file more than 10 KB then not working.
$connection = ssh2_connect("MyHost", port);
if(ssh2_auth_password($connection, 'user', 'password')){
ssh2_scp_send($connection, "/cloud/domains/live/domains/domain.com/http/test.csv","/test.csv")
} else {
echo "Connection fail";
}
ssh2_exec($connection, 'exit');