21.09.2011, 03:40
PHP код:
$connection = ssh2_connect('***', 22);
if(ssh2_auth_password($connection, '***', '***'))
{
echo "Authentication Accepted.";
}
else
{
echo "Authentication Denied.";
}
$stream = ssh2_exec($connection, 'mkdir Testing');