parallel-ssh icon indicating copy to clipboard operation
parallel-ssh copied to clipboard

Implement agent forwarding

Open dnwobu opened this issue 4 years ago • 3 comments

Enable ssh agent forwarding. That is all

dnwobu avatar Mar 09 '21 22:03 dnwobu

PRs welcome.

pkittenis avatar Mar 10 '21 09:03 pkittenis

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.

dnwobu avatar Mar 10 '21 16:03 dnwobu

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.

pkittenis avatar Mar 11 '21 10:03 pkittenis