Skip to content

Conversation

@PaulHigin
Copy link
Contributor

PR Summary

This addresses issue #6207. During SSH remoting on Linux machines, when PowerShell on the client creates the SSH process to connect to the target machine, it was not passing in environment variables from the parent process, and this was preventing ssh-agent key management from working.

This change adds a helper function to create environment variable key/value pairs for the created SSH process, based on the passed in ProcessStartInfo object.

PR Checklist

@PaulHigin PaulHigin added Issue-Bug Issue has been identified as a bug in the product OS-macOS OS-Linux WG-Remoting PSRP issues with any transport layer labels Jun 14, 2018
@PaulHigin PaulHigin added this to the 6.1.0-Consider milestone Jun 14, 2018
@PaulHigin PaulHigin requested a review from SteveL-MSFT June 14, 2018 16:14
@TravisEz13 TravisEz13 merged commit 6fa1e86 into PowerShell:master Jun 15, 2018
@PaulHigin PaulHigin deleted the fix-envvar-sshremoting branch June 18, 2018 16:15
daxian-dbw added a commit that referenced this pull request Jun 19, 2018
…sed in creating ssh process (#7070)"

This reverts commit 6fa1e86.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Issue-Bug Issue has been identified as a bug in the product OS-Linux OS-macOS WG-Remoting PSRP issues with any transport layer

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants