Skip to content

Remove hop restrictions for interactive sessions - #11920

Merged
Andrew (anmenaga) merged 1 commit into
PowerShell:masterfrom
PaulHigin:fix-ssh-enterpshostprocess
Feb 28, 2020
Merged

Andrew (anmenaga) merged 1 commit into
PowerShell:masterfrom
PaulHigin:fix-ssh-enterpshostprocess

Conversation

@PaulHigin

@PaulHigin Paul Higinbotham (PaulHigin) commented Feb 21, 2020 •

Copy link
Copy Markdown
Contributor

PR Summary

This addresses Issue #2453
This PR allows Enter-PSHostProcess to work from within an SSH remote interactive session.

PR Context

Interactive session second hop support was added a while ago, but current behavior is to restrict a second hop to work only from a WinRM remote session. This is an unnecessary restriction and this PR allows both Enter-PSSession and Enter-PSHostProcess to work from within any interactive remote session.

Example:

PS> Enter-PSSession -HostName localhost
[localhost]: PS> Enter-PSHostProcess 8380
[localhost]: [Process:8380]: PS> $pid
8380
Exit-PSHostProcess
[localhost]: PS> Exit-PSSession
PS> 

PR Checklist

@SteveL-MSFT Steve Lee (SteveL-MSFT) left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, please open a doc issue

@anmenaga Andrew (anmenaga) added WG-Remoting PSRP issues with any transport layer CL-General Indicates that a PR should be marked as a general cmdlet change in the Change Log labels Feb 28, 2020
@anmenaga Andrew (anmenaga) added this to the 7.1-Consider milestone Feb 28, 2020
@anmenaga
Andrew (anmenaga) merged commit 00b60c4 into PowerShell:master Feb 28, 2020
@ghost

Copy link
Copy Markdown

🎉v7.1.0-preview.1 has been released which incorporates this pull request.:tada:

Handy links:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CL-General Indicates that a PR should be marked as a general cmdlet change in the Change Log WG-Remoting PSRP issues with any transport layer

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants