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

Implement agent forwarding #286

Open
dnwobu opened this issue Mar 9, 2021 · 3 comments
Open

Implement agent forwarding #286

dnwobu opened this issue Mar 9, 2021 · 3 comments

Comments

@dnwobu
Copy link

dnwobu commented Mar 9, 2021

Enable ssh agent forwarding. That is all

@pkittenis
Copy link
Member

PRs welcome.

@pkittenis pkittenis changed the title Enable agent forwarding Implement agent forwarding Mar 10, 2021
@dnwobu
Copy link
Author

dnwobu commented Mar 10, 2021

What library/package is blocking its implementation upstream? This can give me a was to investigate if other tools have the same issue and potentially give implementation a shot down the line.

@pkittenis
Copy link
Member

pkittenis commented Mar 11, 2021

For libssh2 (pssh.clients.native client), agent forwarding does not work yet. Blocked by 535.

For libssh (pssh.clients.ssh client), forwarding is supported but not fully implemented in bindings.

To implement it for the libssh client would need:

  • Callback support in ssh-python for open request auth agent requests from server - implement callbacks.
  • Implement agent forwarding in parallel-ssh client
    The client needs to:
    • Request agent forwarding on a channel and provide a callback function to be called when the server requests to open the remote (the client's) auth agent
    • Write the local to the client agent's data via the callback by reading from the $SSH_AUTH_SOCK socket

Libssh API documentation.
Bindings API documentation.

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

No branches or pull requests

2 participants