ssh->cmd("cd /test"); ssh->cmd("ls -lrt"); #### use Term::ReadKey; ReadMode('raw'); $ssh->shell; ReadMode('restore');