$connection = ssh2_connect('www.example.ru', 22);
ssh2_auth_password($connection, 'username', 'password');
ssh2_scp_send($connection, '/local/filename', '/remote/filename', 0644);
$image->setImageProperty('Exif.Image.RatingPercent', 100); //Rating tag used by Windows, value in percent