SSH not only provides a mechanism for securely sending remote commands, it also offers a way of securely copying files between two machines. There are two SSH utilities that provide these services: SCP and SFTP.
All three services (SSH, SCP and SFTP) are available at CSLab and they are one of the main ways to communicate with CSLab machines remotely.
To SSH to one of the CSLab machines, use the syntax:
ssh -l username cs.toronto.edu
To invoke the SFTP client use the command:
sftp username@cs.toronto.edu
After logging in, use the "?" to see a list of SFTP commands.
To copy a file using SCP from your home directory to another machine and place it in the directory called "scarlet", use the syntax:
scp filename myusername@anothermachine:/scarlet/
To copy the file "begonias" from another machine to your current location, use the syntax:
scp myusername@anothermachine:/scarlet/begonias .
Please note the use of the '.' in the above command. It refers to your current directory so that the scp command literally means secure copy the file 'begonias' to my current location