Hi Team, I have two boxes where i have disabled root login to make sure the authentication can happen using public and private keys..To be more precise.. I have generated the public and private keys -->Moved the public keys to the server and and private key stay on my Workstation--> Disabled the root login --> Did the same thing on other boxes also so that when i try to login it shouldn't be prompting me for the password Now when i try to login from first server to second server password free login works fine but when i try to do second hop it prompts me for the password which looks to be something wrong with agent forwarding.. Workstation -> Server #1 (works) -> Server #2 (works) -> Server #3 (doesn’t work)
Performed few tests, Tests were done on two boxes.
test01
IP: 192.168.56.3
test02
IP: 192.168.56.5
Test Cases
========
#Tried authenticate same server multiple times and even it prompeted for password
login as: engstaff
Authenticating with public key "rsa-key-20151217" from agent
Last login: Mon Jan 4 11:13:45 2016 from test01
[engstaff@test01 ~]$ ssh 192.168.56.3 <<<<<<<<<<< 1st hop cleared
Last login: Mon Jan 4 11:19:04 2016 from 192.168.56.1
[engstaff@test01 ~]$ ssh 192.168.56.3
engstaff@192.168.56.3's password: <<<<<<<<<<<<<, Promted for password at second hop
#Authenticated the same server<test01> once<which passed the authentication> but then when i tried login tp test02 it prompted for password.
[engstaff@test01 ~]$ ssh 192.168.56.3 <<<<<<<<<< Cleared first hop <Test01>
Last login: Mon Jan 4 11:19:11 2016 from test01
[engstaff@test01 ~]$ ssh 192.168.56.5 <<<<<< Prompted for password at second hop <Test02>
engstaff@192.168.56.5's password:
#Allowed AgentForwarding in sshd config but no luck
I feel it more over looks to be an issue with agent forwarding, Need experts advice on this!!
BR