Cluster log in with SSH

TL;DR

  • Don’t enter your password every time you SSH into a cluster

Configure SSH

Add your cluster login details to your ssh config ~/.ssh/config so that you can log in with

shh CLUSTER_NAME

Importantly, you should not need to enter your password. Assuming you log into the cluster with

ssh USERNAME@HOSTNAME

then your ssh config ~/.ssh/config should have an entry like this

Host CLUSTER_NAME
  HostName HOSTNAME
  User USERNAME
  IdentityFile ~/.ssh/YOUR_PRIVATE_KEY

Then you can easily ssh into the cluster with

shh CLUSTER_NAME
Next