foudroyantanalytics

Steps for Passwordless SSH

Discussion created by foudroyantanalytics on Aug 6, 2016
Latest reply on Aug 16, 2016 by syamada

Steps for Passwordless SSH

 

Let us assume you are creating a 3 node cluster and the nodes are named as maprnode1, maprnode2 and maprnode3.

 

 

Step 1: ssh-keygen -t rsa

Step 2: ssh maprnode1 mkdir -p .ssh

Step 2: ssh maprnode2 mkdir -p .ssh

Step 2: ssh maprnode3 mkdir -p .ssh

Step 3: cat .ssh/id_rsa.pub | ssh maprnode1 'cat >> .ssh/authorized_keys'

Step 3: cat .ssh/id_rsa.pub | ssh maprnode2 'cat >> .ssh/authorized_keys'

Step 3: cat .ssh/id_rsa.pub | ssh maprnode3 'cat >> .ssh/authorized_keys'

Step 4: ssh maprnode1 "chmod 700 .ssh; chmod 640 .ssh/authorized_keys"

Step 4: ssh maprnode2 "chmod 700 .ssh; chmod 640 .ssh/authorized_keys"

Step 4: ssh maprnode2 "chmod 700 .ssh; chmod 640 .ssh/authorized_keys"

Outcomes