Skip to Main Content

Infrastructure Software

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Problem with ssh Agent Forwarding..

User_UGDSQJan 4 2016 — edited Feb 3 2016

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

This post has been answered by User_UGDSQ on Feb 3 2016
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 2 2016
Added on Jan 4 2016
1 comment
2,789 views