Skip to content

ssh for dummies

Connect to remote host

TODOC

  • ssh joe@remote-host: connect to remote-host using joe user name.
  • ssh remote-host: connect to remote-host using current user name.

Run a command on a remote host

TODOC

  • ssh joe@remote-host cmd: run cmd on remote-host using joe user name.
  • ssh remote-host cmd: run cmd on remote-host using current user name.

Open GUI application on remote host, but display on current computer

TODOC

  • ssh -X joe@remote-host cmd:

Copy from a computer to another

TODOC

  • scp <SOURCE> <DESTINATION>:
  • scp -r <SOURCE> <DESTINATION>: Same than scp but recursively copy entire directories. Note that scp follows symbolic links encountered in the tree traversal.