Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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?
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 *
ForwardAgent yes
But I can't remote ssh from A to C..
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
When you get no error it’s fine, although the prompt won’t come back. You can send this eiter in the background by & or use in another session the just created tunnel:
Code:
$ ssh -p 7890 localhost
Instead of 7890 you can use any other available port too.
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
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
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.