Transfer Files
Introduction
Modules
You must have a healthy clearpass in order to connect to the cluster. If you working remotely, a SMU VPN is required.
There are a few ways to transfer the files from your local machine to the server. Using git
to manage and store your code base is highly recommended. Alternatively, users may use other utilties such as scp
or rsync
Git (Recommended)
Host your project on a git repository and clone the project into your home directory with the git clone
command.
Winscp (Windows Only)
WinSCP is a Windows tool with a Graphical User Interface to transfer the files.
-
Launch WinSCP. Fill in the blanks as shown in the screenshot, with your own username and password. Then click login
-
You will be prompted that the host key is not found in the cache. Click "Yes"
-
You should now see your Home directory on the right pane.
-
To navigate around your local computer directory, click on the top left dropdown list as shown.
-
Transfer a copy of the file by dragging from the left pane to the right.
-
You will be prompted to confirm the destination. Verify it, and click "OK"
SCP
SCP or "secure copy" is a command line uility to transfer files between computers. You should execute the sample commands below in your local computer.
To learn more about SCP, open command prompt and type scp
.
To transfer a file from the local computer to the cluster.
scp /path/to/file <username>@origami.smu.edu.sg:~/path/to/destination
To transfer a folder from the local computer to the cluster.
scp -r /path/to/folder <username>@origami.smu.edu.sg:~/path/to/destination
To transfer a file from the cluster to your local computer.
scp <username>@origami.smu.edu.sg:~/path/to/file /path/to/desintation
To transfer a folder from the cluster to the local computer.
scp -r <username>@origami.smu.edu.sg:~/path/to/folder /path/to/file