:: Re: [DNG] Using ssh-agent in multip…
Top Page
Delete this message
Reply to this message
Author: Lars Noodén
Date:  
To: dng
Subject: Re: [DNG] Using ssh-agent in multiple logins
On 3/28/26 16:25, Tom via Dng wrote:
> Is it possible to have only one ssh-agent process running for my user
> account and access it from multiple logins?


Yes, copy the SSH_AUTH_SOCK variable there into each login session.

e.g.

$ set | grep SSH_AUTH

then in each new login session:

$ export SSH_AUTH_SOCK=/tmp/ssh-MVilHMx3nEus/agent.2321

Unless you work out a script for that, however, you'll have to do that
manually, starting with identifying the socket path for the agent.

What problem are you trying to solve?

If you are passing through one or more bastions/jumphosts then you
should probably use -J for ProxyJump instead.

/Lars