LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This 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


Reply
  Search this Thread
Old 05-15-2004, 09:29 AM   #1
podollb
Member
 
Registered: Oct 2003
Location: Grand Forks, ND
Distribution: Suse/Slackware/RH
Posts: 161

Rep: Reputation: 30
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?
 
Old 02-23-2011, 09:16 AM   #2
mago
Member
 
Registered: Apr 2004
Location: Costa Rica
Distribution: slack current with 2.6.16.18 (still off the hook)
Posts: 284

Rep: Reputation: 33
@work do you have:
Code:
Host *
ForwardAgent yes
on your /etc/ssh/ssh_config or your ~/.ssh/config file?
 
Old 02-23-2011, 09:49 AM   #3
podollb
Member
 
Registered: Oct 2003
Location: Grand Forks, ND
Distribution: Suse/Slackware/RH
Posts: 161

Original Poster
Rep: Reputation: 30
Thanks for the reply, although I resolved the issue about 6 years ago
 
Old 10-29-2011, 06:23 AM   #4
nak1090
LQ Newbie
 
Registered: Oct 2011
Posts: 7

Rep: Reputation: Disabled
Question

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!!
 
Old 10-29-2011, 01:47 PM   #5
Reuti
Senior Member
 
Registered: Dec 2004
Location: Marburg, Germany
Distribution: openSUSE 15.2
Posts: 1,339

Rep: Reputation: 260Reputation: 260Reputation: 260
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.
 
1 members found this post helpful.
Old 10-29-2011, 02:21 PM   #6
nak1090
LQ Newbie
 
Registered: Oct 2011
Posts: 7

Rep: Reputation: Disabled
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
 
Old 11-03-2011, 12:30 AM   #7
nak1090
LQ Newbie
 
Registered: Oct 2011
Posts: 7

Rep: Reputation: Disabled
Who can help me, please !??
 
Old 11-03-2011, 06:35 AM   #8
Reuti
Senior Member
 
Registered: Dec 2004
Location: Marburg, Germany
Distribution: openSUSE 15.2
Posts: 1,339

Rep: Reputation: 260Reputation: 260Reputation: 260
Did you try what I posted and got an error?
 
Old 11-03-2011, 07:17 AM   #9
nak1090
LQ Newbie
 
Registered: Oct 2011
Posts: 7

Rep: Reputation: Disabled
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:
Host *
ForwardAgent yes
But it not working :-s
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
ssh-agent, ssh-add and ssh-keygen AND CVS raylpc Linux - General 2 11-19-2008 02:50 AM
ssh-agent/ssh-add question mega Slackware 2 01-26-2005 03:09 AM
ssh-agent alaios Linux - Security 5 05-02-2004 11:24 AM
ssh-agent podollb Linux - Networking 15 10-16-2003 12:51 AM
Getting ssh-agent to work.. Sonny Linux - Security 16 01-25-2002 06:57 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:48 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration