Skip to content

Added copy environment variables from ProcessStartInfo to key/pair array used in creating SSH process for remoting - #7070

Merged
Travis Plunk (TravisEz13) merged 1 commit into
PowerShell:masterfrom
PaulHigin:fix-envvar-sshremoting
Jun 15, 2018
Merged

Travis Plunk (TravisEz13) merged 1 commit into
PowerShell:masterfrom
PaulHigin:fix-envvar-sshremoting

Conversation

@PaulHigin

Copy link
Copy Markdown
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

@TravisEz13
Travis Plunk (TravisEz13) merged commit 6fa1e86 into PowerShell:master Jun 15, 2018
@PaulHigin
Paul Higinbotham (PaulHigin) deleted the fix-envvar-sshremoting branch June 18, 2018 16:15
Dongbo Wang (daxian-dbw) added a commit that referenced this pull request Jun 19, 2018
…sed in creating ssh process (#7070)"

This reverts commit 6fa1e86.
Thatgfsj (Thatgfsj) pushed a commit to Thatgfsj-contribs/PowerShell that referenced this pull request Aug 6, 2026
…reating ssh process (PowerShell#7070)

This addresses issue PowerShell#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.
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