Remote Commands
Published on 24 Mar 2004Tags #SSH
SSH is most commonly known for its ability to login to remote hosts. But it also allows the execution of commands on the remote host without a prior login although it still requires successful authentication (otherwise, there would be no sense in using SSH, right?!):
ssh HOST COMMAND
.
This will not work for screen-based commands which will probably come as a surprise. SSH does not allocate a pseudo-tty for those remote commands but you can force it to do so anyway:
ssh -t HOST COMMAND
.
Feedback is always welcome! If you'd like to get in touch with me concerning the contents of this article, please use Twitter.