SSH login wihout password

Aruba Employee
Aruba Employee

To have AWMS server 1 / root user SSH to AWMS server 2 without password. 

1. First log in on 1 as user a and generate a pair of authentication keys. (Do not enter a passphrase:)

#ssh-keygen -t rsa

2. Now use ssh to create a directory ./root/.ssh on server 2 

#ssh root@awms-server-2 mkdir -p /root/.ssh
(enter Password when prompted)

3. Append AWMS Server 1's new public key to AWMS-server-2@root:.ssh/authorized_keys and enter 2's password one last time:

#cat /root/.ssh/ | ssh b@B 'cat >> /root/.ssh/authorized_keys'

4. From now on you can log into 2 as root from 1 as a without password:
#ssh root@AWMS-server-2 hostname


This command is going to create a public key with the empty pass phrase in one shot 

#ssh-keygen -t rsa -N '' -f /root/.ssh/id_rsa

Version history
Revision #:
1 of 1
Last update:
‎06-09-2014 09:50 AM
Updated by:
Labels (1)
Search Airheads
Showing results for 
Search instead for 
Did you mean: