Basic SSH Usage


Simplest use:

  ssh machine.msri.org

with different username:

  ssh maxwell@math.berkeley.edu

to transfer files:

  sftp machine.msri.org

  sftp maxwell@math.berkeley.edu

(single file copies can be done with scp, see below)

Prev/Next

For those who have problems with the above ssh commands, you can try adding a '-1', like:

  ssh -1 machine.msri.org

  sftp -1 machine.msri.org

This is to connect with servers running some old or broken version of ssh.

Using scp:

From here to there:

  scp filename machine.msri.org:newfilename

From there to here:

  scp machine.msri.org:filename newfilename

From there to other there:

  scp machine.msri.org:filename math.berkeley.edu:newfilename

With different username:

  scp filename maxwell@math.berkeley.edu:newfilename

With path information:

  scp /u/max/directory/filename machine.msri.org:newfilename

  scp filename machine.msri.org:/home/max/directory/newfilename