skip to content
 

ssh

ssh ID@computer.domain
e.g. ssh mr349@citadel.ch.cam.ac.uk

man ssh

scp

To copy files from the computer you are sitting at (local1) to a remote computer (server1):

scp ./file ID@server1:/home/ID/file
e.g.
mr@chm:~> scp womble.txt mr349@citadel.ch.cam.ac.uk:~
or:
mr@chm:~> scp womble.txt mr349@citadel.ch.cam.ac.uk:~/womble.txt

To copy files from a remote computer (server1) to the computer you are sitting at (local1):

scp ID@server1:/home/ID/file ./file
e.g.
mr@chm:~> scp mr349@citadel.ch.cam.ac.uk:~/womble.txt .
or:
mr@chm:~> scp mr349@citadel.ch.cam.ac.uk:~/womble.txt ./womble.txt

man scp

sftp

To sftp to a computer called server1.ch.cam.ac.uk

sftp ID@server1.ch.cam.ac.uk
>

for more info:
> help
man sftp

X11 forwarding

ssh -X ID@computer.domain
e.g. ssh -X mr349@citadel.ch.cam.ac.uk

The -X is the option for X11 forwarding and if you are using a medium/slow connection then you might want compression: -C.

Can't find what you're looking for?

Then you might find our A-Z site index useful. Or, you can search the site using the box at the top of the page, or by clicking here.