-
Notifications
You must be signed in to change notification settings - Fork 602
[Ready for Review] Add agent forwarding implementation #219
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
Conversation
|
Looks like there are some unrelated errors in some builds |
|
Appveyor failures also look unrelated:
|
|
Is anyone available to review this PR? One thing that has not been tested is the behaviour with a non-OpenSSH server. |
|
Latest changes: Support windows builds for agent fwd example. Appveyor tests now pass. |
|
I've confirmed the patch works great. Small request; could you correct the spelling of succeed in |
|
Hi there, Thanks for the review! Will make the changes above. Before merging will need to verify non-openssh compatibility. Have had multiple reports of this code failing to request auth agent on different non-openssh servers, which as above was not tested. Whether that's because of lack of support on server or issue with code not sure yet, to be confirmed. |
|
I've been using this in a private fork and it is working with non-openssh servers. There was an issue with the string |
|
@willco007 so you're a 👍 for merging this then I take it? |
|
@pkittenis it'd be cool if you rebased this and pushed again since the new travis builds will find both code style warnings and compiler warnings on the code and example. |
|
@bagder Yes, working well here. |
|
Cool, thanks for testing. Will rebase and make changes above. |
|
Some linting failures, will update. |
|
@pkittenis Would you mind fixing up the linting errors, it would be great to get this into the 1.9 release. |
|
Yup, keen to get it in too. Will fix up the linting errors this weekend. |
Added integration test code and cmake target. Added example to cmake list.
|
Have updated for linting changes plus rebased on latest master. Let me know if anything else needed - excuse the delay. |
|
Ping @willco007 - anything else needed on this? |
… macro When `:forward-agent t` argument is passed to `with-ssh-connection` macro, it will use libssh2_channel_request_auth_agent call before execution the body. The function [was merged](libssh2/libssh2#219) on 13 August 2019 and should be included into the libssh2 > 1.9.0 which is not released yet.
Hello,
This PR implements SSH agent forwarding support via
libssh2_channel_request_auth_agent. It is based on Mr Hashimoto's patch in mailing list with changes/additions for correctness (primarily, the message was incorrect in the patch).Example file has been updated to use agent auth and added to cmake list.
Also added integration test
tests/test_agent_forward_succeds.cand to cmake list which is passing (needs #218 for cmake build to succeed)Let me know if anything else needed. Agent forwarding is one of the only "core" features missing in
libssh2so would be good to get it implemented. Thanks for the awesome library.Resolves #185