Networking Forums

Networking Forums > Computer Networking > Linux Networking > ssh-agent forwarding

Reply
Thread Tools Display Modes

ssh-agent forwarding

 
 
Dani Camps
Guest
Posts: n/a

 
      02-05-2005, 03:53 PM
I have three machines let's say A, B and C.
I do the following :

1-from A I ssh B: A# ssh B
2-from B I ssh C: B# ssh C

I am using public key authentication in both B and C, and the key that
is allowed to access is one stored in A. So first I run ssh-agent in A
and I load the key there, so the point 1 is perfect, from A I do ssh B
and the connection is done.

The problem is in the point 2, because to conect C I need a key that
is loaded in A's ssh-agent. I know that is possible to do ssh-agent
forwarding, so B uses the ssh connection that has with A to ask the
A's ssh-agent for the key when he wants to authenticate with C. But I
don't know how to configure this. I read somewhere that the only thing
you need is to add in the ssh-client configuration file in B the
following keyword "ForwardAgent yes", but I have tried this and is not
working. I am using OpenSSH in all the machines.

Any idea on how to enable this feature?
Maybe it was necessary to compile OpenSSH with this option otherwise
now is not possible to use? Any solution then ?

Thanks !
 
Reply With Quote
 
 
 
 
David Werner
Guest
Posts: n/a

 
      02-07-2005, 03:15 PM
On 2005-02-05, Dani Camps <(E-Mail Removed)> wrote:
> I have three machines let's say A, B and C.
> I do the following :
>
> 1-from A I ssh B: A# ssh B
> 2-from B I ssh C: B# ssh C
>
> I am using public key authentication in both B and C, and the key that
> is allowed to access is one stored in A. So first I run ssh-agent in A
> and I load the key there, so the point 1 is perfect, from A I do ssh B
> and the connection is done.
>
> The problem is in the point 2, because to conect C I need a key that
> is loaded in A's ssh-agent. I know that is possible to do ssh-agent
> forwarding, so B uses the ssh connection that has with A to ask the
> A's ssh-agent for the key when he wants to authenticate with C. But I
> don't know how to configure this. I read somewhere that the only thing
> you need is to add in the ssh-client configuration file in B the
> following keyword "ForwardAgent yes", but I have tried this and is not
> working. I am using OpenSSH in all the machines.


I think this has to be on A. You have to say it on the first host
that you intend to use feature. If the server at B allows it, it
endows the shell at B with right environment, that the next ssh (B to C)
sees the keys.

>
> Any idea on how to enable this feature?


You can also use "ssh -A" on host A (the first ssh)
if you intend to use the feature.
You also need also your public key in authorized_keys(2) on B and C.
Maybe the ssh-server at B runs with no-agent-forwarding,
which disallows it.

Greetings David


> Maybe it was necessary to compile OpenSSH with this option otherwise
> now is not possible to use? Any solution then ?
>
> Thanks !

 
Reply With Quote
Reply

Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
DHCP Relay Agent and NAT Boris Windows Networking 1 03-03-2008 02:49 AM
IF-TNCCS-SOH Agent fuki.style@gmx.net Linux Networking 0 07-27-2007 08:30 AM
Adding SNMP agent =?Utf-8?B?R3V4?= Windows Networking 2 02-24-2005 01:25 PM
ssh-agent fun /dev/null Linux Networking 1 12-13-2004 11:02 PM
ssh-agent fun /dev/null Linux Networking 0 12-13-2004 06:12 PM



1 2 3 4 5 6 7 8 9 10 11