Skip to content

Data transfer to/from Rackham using SCP

There are multiple ways to transfer files to or from Rackham.

Here it is described how to do file transfer to/from Rackham using SCP. SCP is an abbreviation of 'Secure copy protocol', however, it is not considered 'secure' anymore: instead it is considered an outdated protocol. The program scp allows you to transfer files to/from Rackham using SCP, by coping them between your local computer and Rackham.

Procedure

1. Start a terminal on your local computer

Start a terminal on your local computer

2. Copy files using scp

In the terminal, copy files using scp to connect to Rackham:

scp [from] [to]

Where [from] is the file(s) you want to copy, and [to] is the destination. This is quite a shorthand notation!

This is how you copy a file from your local computer to Rackham:

scp [local_filename] [username]@rackham.uppmax.uu.se:/home/[username]

where [local_filename] is the path to a local filename, and [username] is your UPPMAX username, for example:

scp my_file.txt sven@rackham.uppmax.uu.se:/home/sven

To copy a file from Rackham to your local computer, do the command above in reverse order:

scp [username]@rackham.uppmax.uu.se:/home/[username]/[remote_filename] [local_folder]

where [remote_filename] is the path to a remote filename, [username] is your UPPMAX username, and [local_folder] is your local folder, for example:

scp sven@rackham.uppmax.uu.se:/home/sven/my_remote_file.txt /home/sven

3. If asked, give your UPPMAX password

If asked, give your UPPMAX password. You can get rid of this prompt if you have setup SSH keys