This is NOT the reccomended method for access on windows as it does not allow SSH multiplexing or X-11 forwarding
First time setup
The login process can be simplified significantly with a few easy configurations.
- In a new local terminal run;
mkdir -p ~/.ssh/socketsthis will create a hidden file in your home directory to store socket configurations.
Open your ssh config file with
nano ~/.ssh/configand add the following (replacing
<username>with your username):
Host * ControlMaster auto ControlPath ~/.ssh/sockets/ssh_mux_%h_%p_%r ControlPersist 1 Host mahuika User <username> Hostname login.mahuika.nesi.org.nz ProxyCommand ssh -W %h:%p lander ForwardX11 yes ForwardX11Trusted yes ServerAliveInterval 300 ServerAliveCountMax 2 Host maui User <username> Hostname login.maui.nesi.org.nz ProxyCommand ssh -W %h:%p lander ForwardX11 yes ForwardX11Trusted yes ServerAliveInterval 300 ServerAliveCountMax 2 Host lander User <username> HostName lander02.nesi.org.nz ForwardX11 yes ForwardX11Trusted yes ServerAliveInterval 300 ServerAliveCountMax 2
Close and save with ctrl x, y, Enter
- Ensure the permissions are correct by running
chmod 600 ~/.ssh/config.
Assuming you have followed the setup above you will be able to connect to the clusters directly using;
Subsequent local terminals opened will be able to scp files without having to re-enter authentication e.g.
scp <path/filename> mahuika:~/
(For more info visit data transfer).