Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

allow server to connect to forwarded agent from client #1374

Open
a2intl opened this issue Mar 2, 2024 · 1 comment
Open

allow server to connect to forwarded agent from client #1374

a2intl opened this issue Mar 2, 2024 · 1 comment

Comments

@a2intl
Copy link

a2intl commented Mar 2, 2024

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
Copy link
Author

a2intl commented Mar 2, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant