[CHUUG]

Stupid SSH Tricks

Main Parts



  1. slogin hostname [-l username] [-v] [-x] [other options]

    -v verbose mode
    -x don't tunnel X connection
    -l username different username on remote host

  2. ssh hostname [-l username] [-v] command [args]

    One-off command; falls back to slogin if no command given. Most options work with ssh as with slogin. Command can be quoted (' or ")

  3. scp file.ext [username@]hostname:[path/file]

    Several points to note:

    1. files can be local or remote (one or both);
    2. Second argument can be a directory; if so, first filename is preserved;
    3. Multiple files can be specified; if so, last argument must be a directory.
     
     


Stupid SSH Tricks
Pat Murphy