Host tuftshpc
User {YOUR_USERNAME_HERE}
HostName login.cluster.tufts.edu
ControlMaster auto
ControlPath ~/.ssh/%r@%h:%p
UseKeychain yes
This will let you cleanly refer to the remote filesystem as tuftshpc
Follow standard procedures to log into the cluster
-
Open VPN and start a secure session
-
Log into the tufts HPC via an SSH tunnel in a window of your terminal
$ ssh tuftshpc
Open a fresh terminal. Keep the old window open (so the tunnel is open).
The scp
works just like Unix's cp
command, but over SSH tunnels
Setup the local path (on your laptop filesystem) and the remote path
REMOTE_PATH=/cluster/tufts/hugheslab/datasets/
LOCAL_PATH='/Users/mhughes/Desktop/
Send data to the cluster
scp $LOCAL_PATH/myfile.txt tuftshpc:$REMOTE_PATH
Copy data from the cluster
scp tuftshpc:$REMOTE_PATH/myfile.txt $LOCAL_PATH