Password less ssh between two Amazon ec2 instances

0

I have to install an 12.2 instance for that we need a password less SSH connection between 2 applications nodes. I created the instance using a private key called EC2_linux. I am able ssh to another ec2 instance as ec2-user but I want to connect as user appltest. I tried the following process but it is not working.

  1. Server1: ssh-keygen -t rsa
  2. Server1: copied the id_rsa.pub to server2
  3. server2: cat id_rsa.pub >> .ssh/authorized-keys But I am unable to SSH to the server2 as "ssh appltest@server2" without password. How to achieve this setup?

sateesh

Posted 2015-06-23T06:35:05.000

Reputation: 1

possible duplicate of How do I set up SSH so I don't have to type my password?

– Dmitry Grigoryev – 2015-06-23T06:48:53.303

I tried all the steps mentioned in that link. – sateesh – 2015-06-23T07:36:43.657

Then you should add this link to your answer and point out which steps are failing. – Dmitry Grigoryev – 2015-06-23T07:42:27.503

How do I set up SSH so I don't have to type my password? – sateesh – 2015-06-23T09:42:19.497

I followed the steps in above mentioned link and I also set the permissions as mentioned. But still I am unable to login without password. – sateesh – 2015-06-23T10:17:31.387

No answers