Repository navigation
Conversation
Contributor
|
Looks good. Needs some tests though! |
|
I checked and this fixes the issue I commented about on #23. I will port this to the latest master and open a new PR. |
Member
|
Rolling this into #478 as per above |
intgr
pushed a commit
to intgr/paramiko
that referenced
this pull request
Nov 27, 2019
SSHClient: invoke_shell() should use environment argument
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This fixes the issue I had with the authentication key not being the first one delivered by ssh-agent. The problem was paramiko sending a service request for each ssh key held by the agent. The server would disconnect on the second service request. With the changes, (1) the authentication is instantiated only once for the full list of keys provided by the agent, (2) the service request is only performed once.
Cheers!