I want to change directory in PHP with phpseclib library but it's doesn't works.
$ssh = new Net_SSH2('localhost');
if (!$ssh->login('root', 'pass')) {
exit('Failed to connect!');
}
$ssh->exec('cd /home/');
echo $ssh->exec('ls');
Why this is always output only root directory files/folders... and don't change the directory to home?