甚至可以使用Windows 7进行此操作。
答案 0 :(得分:1)
您可以使用phpseclib, a pure PHP SSH2 implementation。例如:
<?php
include('Net/SSH2.php');
$ssh = new Net_SSH2('www.domain.tld');
if (!$ssh->login('username', 'password')) {
exit('Login Failed');
}
echo $ssh->exec('pwd');
echo $ssh->exec('ls -la');
?>