This gives basic examples of ssh use from the command line (also known as the terminal, cmd) on Linux, MacOS, and Windows 10 machines. For serious ssh use on Windows we recommend installing MobaXterm instead.
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
If you need to do scp from outside Chemistry's firewall to inside it, or vice versa, see https://www.ch.cam.ac.uk/computing/scp-over-ssh-tunnel
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.