Many commands and programs in the remote side are screen-based (e.g. mc
) or they need to ask password (e.g. sudo
), to be able to run these kind of programs you can use option -t
.
ssh -t [email protected] sudo ls /
[sudo] password for alice:
bin root dev etc home lib mnt opt proc root run usr var