Skip to content

Transferring Files

You can transfer files from your PC to the cluster and vice-versa via the scp command available in the terminal on all OS (for Windows versions older than W10, use PuTTY/WinSCP).

Info

The commands below should be executed on the local machine, regardless of the direction of the data transfer.

From Local to Remote

To transfer a file such as example.py from your computer to the cluster, you can type:

scp /path/to/example.py <username>@login.deucalion.macc.fccn.pt:/path/to/cluster/folder

In order to transfer a whole directory, use the -r flag.

scp -r /path/to/folder <username>@login.deucalion.macc.fccn.pt:/path/to/cluster/folder
scp /path/to/example.py <username>@transfer1.bsc.es:/path/to/cluster/folder

In order to transfer a whole directory, use the -r flag.

scp -r /path/to/folder <username>@transfer1.bsc.es:/path/to/cluster/folder

You can access 5 transfer nodes on MN5 (transfer1 to transfer5).

From Remote to Local

Now, to copy files from Deucalion or MN5 to your local machine, you can open a terminal and type:

scp <username>@login.deucalion.macc.fccn.pt:/path/to/remote/example.py /path/to/local/destination/

In order to transfer a whole directory, use the -r flag.

scp -r <username>@login.deucalion.macc.fccn.pt:/path/to/remote/folder /path/to/local/destination/
scp <username>@transfer1.bsc.es:/path/to/remote/example.py /path/to/local/destination/

In order to transfer a whole directory, use the -r flag.

scp -r <username>@transfer1.bsc.es:/path/to/remote/folder /path/to/local/destination/

You can access 5 transfer nodes on MN5 (transfer1 to transfer5).

WinSCP

Windows users can use WinSCP to manage file transfers in a user friendly interface.

  1. Open WinSCP
  2. In the File Protocol field, select SCP
  3. In the Host name field, specify the hostname
    • Deucalion: login.deucalion.macc.fccn.pt
    • MN5: transfer1.bsc.es
  4. In the User name field, specify your username
  5. Click on Advanced, then navigate to the SSH > Authentication tab. In the Authentication parameters section, locate and select your private SSH key file.
    • Note: If your key is not in the required .ppk format, the application will prompt you to convert it automatically
  6. Click on Ok to close the Advanced window
  7. Click on Login to establish the connection