RSS Amplifier

Aidan Scannell · May 5, 2019

Cluster log in with SSH

0
Sign in to vote or save

This site does not allow itself to be embedded. You can still read it on the original site — the toolbar below keeps your place in the directory.

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…

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

Read on aidanscannell.com

Comments

Nothing yet. Say the first thing.

    Sign in to join the conversation.