ssh-agent forwarding (order of authentication)
I have created a ssh key (dsa) that I put on some remote systems (at work) in ~/.ssh/authorized_keys2 and then I was able to start up an agent from home and log in passwordless, but I have 4 linux boxes at home that I have done the exact same thing on and it still prompts me for the password (of my user account) and ignores the ssh-agent I am forwarding. So my question is do I need to change the order of authentication somewhere so that I can set it up to first look for a ssh-agent being forwarded rather than prompting me for the user password?
|
@work do you have:
Code:
Host * |
Thanks for the reply, although I resolved the issue about 6 years ago :)
|
Hi all
I have a diagram A<-->B<-->C A can SSH to B without password, B can SSH to C without password I want SSH from A to C with agent forward. I had config in /etc/ssh/ssh_config Code:
Host * Help me. Thanks!! |
Why didn’t you create a new thread, as you have completely new question?
Anyway, you will need to create a tunnel for the final connection: Code:
$ ssh -N -L 7890:C:22 B Code:
$ ssh -p 7890 localhost |
Hello Reuti, thanks for your reply.
Because I see Podollb resolved the issue so I post question here. But I want remote from A to C without password thought B. B is a Agent-forwarding. You can see "Public Key Access with Agent Forwarding " in http://unixwiz.net/techtips/ssh-agent-forwarding.html |
Who can help me, please !??
|
Did you try what I posted and got an error?
|
Your post was no error...
But I want do it by another way :(. A <---> B: SSH without password by key-based authentication B <---> C: SSH without password by key-based authentication And I want A <---> C: ssh without password which don't use key-based authentication (B is forwarding) Although I have config in /etc/ssh/ssh_config Quote:
|
All times are GMT -5. The time now is 09:54 PM. |