Hello Friends.
I am using Rhel 5.4 on System1 and centos 5.4 on System2. I am able to do SSH from A1 user of System1 to A2 User of System2 by simple method.Now i want that i generates Keys for both user A1 & A2. I generated keys succesfully.
IP of System1 - 200.0.0.1
IP of System2 - 200.0.0.2
[A1@System1 ~]$ssh-keygen -t dsa - Generated succesfully
[A2@System2 ~]$ssh-keygen -t dsa - Generated succesfully
[A1@System1 ~]$scp -p .ssh/id_dsa.pub [email protected]:.ssh/authorized_keys2 - Successfully Uploaded
[A2@System2 ~]$chmod 600 .ssh/authorized_keys2
[A1@System1 ~]$ssh [email protected] - Logined successfully without asking any password Done.
Now I want that User B1 of System1 should also be able to do ssh by same manner to A2 user of System2.I am not doing any changes in A2 user of System2.
[B1@System1 ~]$ssh-keygen -t dsa - Generated succesfully
[B1@System1 ~]$scp -p .ssh/id_dsa.pub [email protected]:.ssh/authorized_keys5 - Successfully Uploaded
[A2@System2 ~]$chmod 600 .ssh/authorized_keys5
[B1@System1 ~]$ssh [email protected] - Now it is asking Passowrd for A2 user of System2. This is problem
Why it is asking password when i am trying to do ssh from B1@System1 to A2@System2. I have done same steps where is the gap. Stiil i am able to do ssh from A1@System1 to A2@System2 without asking password.
Kindly suggest me and point out where i am wrong