Data transfer to/from COSMOS using scp¶
Why is this page at LUNARC?
It is the intention that this guide is moved to the LUNARC documentation. However, it has not been suggested to be added to their documentaton yet.
There are multiple ways to transfer files to or from COSMOS. Here it is described how to do file transfer to/from COSMOS using scp.
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 Cosmos:
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 Cosmos:
where [local_filename] is the path to a local filename,
and [username] is your LUNARC username, for example:
To copy a file from Cosmos to your local computer, do the command above in reverse order:
where [remote_filename] is the path to a remote filename,
[username] is your LUNARC username,
and [local_folder] is your local folder, for example:
3. If asked, give your LUNARC password¶
If asked, give your LUNARC password and TOTP code from your "Pocket pass" application.
You may get rid of this prompt if you have setup SSH keys