ssh2 icon indicating copy to clipboard operation
ssh2 copied to clipboard

allow server to connect to forwarded agent from client

Open a2intl opened this issue 1 year ago • 1 comments

It appears that while it is possible for a server to detect that a client has enabled agent forwarding via the auth-agent Session event, there isn't currently a way to connect to & use the forwarded agent. I've been working on a solution to this: Connection needs to support an authAgent method (which can use the already-existing Protocol.openssh_authAgent method) to connect a Channel to the client's forwarded agent, and a new ChannelAgent class that can talk to an agent using a Channel (that is returned from the authAgent callback).

a2intl avatar Mar 02 '24 08:03 a2intl

Okay, it looks like PR #781 was about half of what I was thinking here.

a2intl avatar Mar 02 '24 08:03 a2intl