-
Notifications
You must be signed in to change notification settings - Fork 0
File transfer
These instructions assume the remote (RONIN) machine is running on Ubuntu. Your remote machine must be switched on to transfer files!
On a unix-based local machine (e.g. Mac or Ubuntu):
You will need to know your path to your key file (the .pem file). You set up this key on your RONIN account and you need to choose a key to use when you set up the RONIN machine. When you download the keyfile, it tells you to copy it to your .ssh/ folder, which is where it is assumed to be in the above command.
To upload, the format is:
scp -i [path-to-key-file-on-your-laptop] [path-to-local-file-or-folder-on-your-laptop] ubuntu@[your-server].ronin.manchester.ac.uk:[path-to-file-on-remote-machine]
For example:
scp -i ~/.ssh/my-ronin-key.pem localfile.txt ubuntu@myserver.ronin.manchester.ac.uk:/home/ubuntu/
To download, the format is:
scp -i [path-to-key-file-on-your-laptop] ubuntu@[your-server].ronin.manchester.ac.uk:[path-to-file-on-remote-machine] [path-to-local-file-or-folder-on-your-laptop]
For example:
scp -i ~/.ssh/my-ronin-key.pem ubuntu@myserver.ronin.manchester.ac.uk:/home/ubuntu/my_project/data .
On Windows:
You may need to first install Git Bash. Then you can run the above command, however the keyfile may be in a different place. Again, you get instructions to download it when you create the key.
Q: Does it cost money to upload and download files? A: Downloading files from AWS costs money, something like 9p per GB. Uploading to AWS is free. See the data transfer section here for more details. Q: My up/download isn't working! A: Check your error message. Make sure every part of the command above is written correctly. Make sure your instance is switched on. Now check the command again! Q: I need to do a big up/download and I'm concerned about costs A: You could try zipping up your files on the remote machine. Also a cheeky trick is to disconnect the storage from an expensive instance when it's switched off, attach it to a machine running a cheap instance to do the download. You can move it back to the original machine afterwards.