René's URL Explorer Experiment


Title: Ctrl+C doesn't work as expected with SSH Remoting · Issue #2321 · PowerShell/PowerShell · GitHub

Open Graph Title: Ctrl+C doesn't work as expected with SSH Remoting · Issue #2321 · PowerShell/PowerShell

X Title: Ctrl+C doesn't work as expected with SSH Remoting · Issue #2321 · PowerShell/PowerShell

Description: In PowerShell Ctrl+C should stop a running command. But in an SSH interactive remote session Ctrl+C terminates the SSH process and closes the session. This behavior is the same for both Windows and Linux clients. This is happening becaus...

Open Graph Description: In PowerShell Ctrl+C should stop a running command. But in an SSH interactive remote session Ctrl+C terminates the SSH process and closes the session. This behavior is the same for both Windows and...

X Description: In PowerShell Ctrl+C should stop a running command. But in an SSH interactive remote session Ctrl+C terminates the SSH process and closes the session. This behavior is the same for both Windows and...

Opengraph URL: https://github.com/PowerShell/PowerShell/issues/2321

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Ctrl+C doesn't work as expected with SSH Remoting","articleBody":"In PowerShell Ctrl+C should stop a running command.  But in an SSH interactive remote session Ctrl+C terminates the SSH process and closes the session.  This behavior is the same for both Windows and Linux clients.\n\nThis is happening because both PowerShell and SSH processes are attached to the console and so they both get the SIGINT signal.  PowerShell sends a PSRP stop signal over the channel as expected but the SSH process also handles the signal and terminates the process which closes the remote session.\n## Steps to reproduce\n\n``` powershell\nPS> Enter-PSSession -HostName \u003chostName> -UserName \u003cuserName>\n[\u003chostName>]: PS > 1..100 % { sleep 1; \"Output $_\" }\nOutput 1\nOutput 2\n# While script is running type Ctrl+C to stop it\n```\n## Expected behavior\n\nRunning command stops and remote session prompt is displayed.\n## Actual behavior\n\nSession is ended with error:\n\n``` powershell\nSystem.IO.IOException: Pipe is broken\n```\n\nAlso the exception is unhandled causing PowerShell process to crash.\n## Environment data\n\n``` powershell\nName                           Value\n----                           -----\nPSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}\nSerializationVersion           1.1.0.1\nPSRemotingProtocolVersion      2.3\nBuildVersion                   3.0.0.0\nWSManStackVersion              3.0\nPSVersion                      6.0.0-alpha\nCLRVersion\nGitCommitId                    v6.0.0-alpha.10-8-gdd2394b1e6088f6c82054f5cae5520e532010fd4-dirty\nPSEdition                      Core\n```\n","author":{"url":"https://github.com/PaulHigin","@type":"Person","name":"PaulHigin"},"datePublished":"2016-09-20T21:27:41Z","url":"https://github.com/PowerShell/PowerShell/issues/2321"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:4074c914-7695-bed6-8465-3378b3168a48
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idBD6C:11138E:1198BF:189D7C:6AFD4D7D
html-safe-nonce24e6541102b65dc31464fcafaaa7526e50459b3ef756e09cbf64fed6c60941f5
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCRDZDOjExMTM4RToxMTk4QkY6MTg5RDdDOjZBRkQ0RDdEIiwidmlzaXRvcl9pZCI6IjQ5NzkyMTM3NTkwODQ4NDIzNjUiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmacf954ac4e46f86368ce5e7168abb8a68b90d942938874c1f9f351adc3cfa52201
hovercard-subject-tagissue:178184870
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/PowerShell/PowerShell/2321/issue_layout
twitter:imagehttps://opengraph.githubassets.com/14c0eb9a4b995fd32dfa6b5926bd9049c8eed397ee13f3bb09160449cdad733b/PowerShell/PowerShell/issues/2321
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/14c0eb9a4b995fd32dfa6b5926bd9049c8eed397ee13f3bb09160449cdad733b/PowerShell/PowerShell/issues/2321
og:image:altIn PowerShell Ctrl+C should stop a running command. But in an SSH interactive remote session Ctrl+C terminates the SSH process and closes the session. This behavior is the same for both Windows and...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamePaulHigin
hostnamegithub.com
expected-hostnamegithub.com
None66653c2e55a6fff2930be1bdf07ee4f8aa137e3956d056c822563be6f878755e
turbo-cache-controlno-preview
go-importgithub.com/PowerShell/PowerShell git https://github.com/PowerShell/PowerShell.git
octolytics-dimension-user_id11524380
octolytics-dimension-user_loginPowerShell
octolytics-dimension-repository_id49609581
octolytics-dimension-repository_nwoPowerShell/PowerShell
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id49609581
octolytics-dimension-repository_network_root_nwoPowerShell/PowerShell
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releaseb6f01f7cb9f35f8c09949773241a3d49dd04b340
ui-targetcanary-2
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/PowerShell/PowerShell/issues/2321#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FPowerShell%2FPowerShell%2Fissues%2F2321
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FPowerShell%2FPowerShell%2Fissues%2F2321
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=PowerShell%2FPowerShell
Reloadhttps://github.com/PowerShell/PowerShell/issues/2321
Reloadhttps://github.com/PowerShell/PowerShell/issues/2321
Reloadhttps://github.com/PowerShell/PowerShell/issues/2321
PowerShellhttps://github.com/PowerShell
PowerShellhttps://github.com/PowerShell/PowerShell
Codehttps://github.com/PowerShell/PowerShell
Issues1.3k (1.3k)https://github.com/PowerShell/PowerShell/issues
Pull requests365 (365)https://github.com/PowerShell/PowerShell/pulls
Discussionshttps://github.com/PowerShell/PowerShell/discussions
Actionshttps://github.com/PowerShell/PowerShell/actions
Projectshttps://github.com/PowerShell/PowerShell/projects
Security and quality3 (3)https://github.com/PowerShell/PowerShell/security
Insightshttps://github.com/PowerShell/PowerShell/insights
https://github.com/PowerShell/PowerShell
New issuehttps://github.com/login?return_to=https://github.com/PowerShell/PowerShell/issues/2321
New issuehttps://github.com/login?return_to=https://github.com/PowerShell/PowerShell/issues/2321
Ctrl+C doesn't work as expected with SSH Remotinghttps://github.com/PowerShell/PowerShell/issues/2321#top
https://github.com/PaulHigin
Issue-BugIssue has been identified as a bug in the producthttps://github.com/PowerShell/PowerShell/issues?q=state%3Aopen%20label%3A%22Issue-Bug%22
OS-Linuxhttps://github.com/PowerShell/PowerShell/issues?q=state%3Aopen%20label%3A%22OS-Linux%22
OS-macOShttps://github.com/PowerShell/PowerShell/issues?q=state%3Aopen%20label%3A%22OS-macOS%22
Resolution-FixedThe issue is fixed.https://github.com/PowerShell/PowerShell/issues?q=state%3Aopen%20label%3A%22Resolution-Fixed%22
WG-RemotingPSRP issues with any transport layerhttps://github.com/PowerShell/PowerShell/issues?q=state%3Aopen%20label%3A%22WG-Remoting%22
6.0.0-GAhttps://github.com/PowerShell/PowerShell/milestone/27
https://github.com/PaulHigin
Paul Higinbotham (PaulHigin)https://github.com/PaulHigin
on Sep 20, 2016https://github.com/PowerShell/PowerShell/issues/2321#issue-178184870
Nexthttps://github.com/PowerShell/PowerShell/issues/2321?timeline_page=1
Paul Higinbotham (PaulHigin)https://github.com/PaulHigin
on Sep 20, 2016https://github.com/PowerShell/PowerShell/issues/2321#event-796365633
Mike Richmond (mirichmo)https://github.com/mirichmo
WG-RemotingPSRP issues with any transport layerhttps://github.com/PowerShell/PowerShell/issues?q=state%3Aopen%20label%3A%22WG-Remoting%22
on Sep 20, 2016https://github.com/PowerShell/PowerShell/issues/2321#event-796490861
Steve Lee (SteveL-MSFT)https://github.com/SteveL-MSFT
on Oct 6, 2016https://github.com/PowerShell/PowerShell/issues/2321#event-815422039
Steve Lee (SteveL-MSFT)https://github.com/SteveL-MSFT
on Dec 19, 2016https://github.com/PowerShell/PowerShell/issues/2321#event-899111042
https://github.com/PaulHigin
Paul Higinbotham (PaulHigin)https://github.com/PaulHigin
on Feb 1, 2017https://github.com/PowerShell/PowerShell/issues/2321#issuecomment-276811876
#2827https://github.com/PowerShell/PowerShell/issues/2827
Paul Higinbotham (PaulHigin)https://github.com/PaulHigin
on Feb 8, 2017https://github.com/PowerShell/PowerShell/issues/2321#event-954516694
https://github.com/vors
sergei (vors)https://github.com/vors
on Feb 28, 2017https://github.com/PowerShell/PowerShell/issues/2321#issuecomment-282948233
https://github.com/iSazonov
Ilya (iSazonov)https://github.com/iSazonov
on Feb 28, 2017https://github.com/PowerShell/PowerShell/issues/2321#issuecomment-283068484
http://unix.stackexchange.com/questions/102061/ctrl-c-handling-in-ssh-sessionhttp://unix.stackexchange.com/questions/102061/ctrl-c-handling-in-ssh-session
https://github.com/PaulHigin
Paul Higinbotham (PaulHigin)https://github.com/PaulHigin
on Feb 28, 2017https://github.com/PowerShell/PowerShell/issues/2321#issuecomment-283190136
https://github.com/iSazonov
Ilya (iSazonov)https://github.com/iSazonov
on Mar 2, 2017https://github.com/PowerShell/PowerShell/issues/2321#issuecomment-283704210
Paul Higinbotham (@PaulHigin)https://github.com/PaulHigin
process groupshttps://en.wikipedia.org/wiki/Process_group
process must make a callhttp://man7.org/linux/man-pages/man2/setpgid.2.html
https://github.com/openssh/openssh-portable/blob/79e4829ec81dead1b30999e1626eca589319a47f/sshpty.c#L112https://github.com/openssh/openssh-portable/blob/79e4829ec81dead1b30999e1626eca589319a47f/sshpty.c#L112
https://github.com/PaulHigin
Paul Higinbotham (PaulHigin)https://github.com/PaulHigin
on Mar 2, 2017https://github.com/PowerShell/PowerShell/issues/2321#issuecomment-283709120
Ilya (@iSazonov)https://github.com/iSazonov
https://github.com/iSazonov
Ilya (iSazonov)https://github.com/iSazonov
on Mar 2, 2017https://github.com/PowerShell/PowerShell/issues/2321#issuecomment-283711603
Steve Lee (SteveL-MSFT)https://github.com/SteveL-MSFT
Paul Higinbotham (PaulHigin)https://github.com/PaulHigin
on Mar 4, 2017https://github.com/PowerShell/PowerShell/issues/2321#event-986277784
https://github.com/PaulHigin
Paul Higinbotham (PaulHigin)https://github.com/PaulHigin
on Mar 16, 2017https://github.com/PowerShell/PowerShell/issues/2321#issuecomment-287224321
https://github.com/joeyaiello
Joey Aiello (joeyaiello)https://github.com/joeyaiello
on May 25, 2017https://github.com/PowerShell/PowerShell/issues/2321#issuecomment-304084047
Paul Higinbotham (@PaulHigin)https://github.com/PaulHigin
https://github.com/PaulHigin
Paul Higinbotham (PaulHigin)https://github.com/PaulHigin
on May 25, 2017https://github.com/PowerShell/PowerShell/issues/2321#issuecomment-304089315
https://github.com/joeyaiello
Joey Aiello (joeyaiello)https://github.com/joeyaiello
on May 25, 2017https://github.com/PowerShell/PowerShell/issues/2321#issuecomment-304113743
Paul Higinbotham (@PaulHigin)https://github.com/PaulHigin
Paul Higinbotham (PaulHigin)https://github.com/PaulHigin
Issue-BugIssue has been identified as a bug in the producthttps://github.com/PowerShell/PowerShell/issues?q=state%3Aopen%20label%3A%22Issue-Bug%22
OS-Linuxhttps://github.com/PowerShell/PowerShell/issues?q=state%3Aopen%20label%3A%22OS-Linux%22
OS-macOShttps://github.com/PowerShell/PowerShell/issues?q=state%3Aopen%20label%3A%22OS-macOS%22
Waiting - DotNetCorewaiting on a fix/change in .NEThttps://github.com/PowerShell/PowerShell/issues?q=state%3Aopen%20label%3A%22Waiting%20-%20DotNetCore%22
on Jun 1, 2017https://github.com/PowerShell/PowerShell/issues/2321#event-1106399957
https://github.com/PaulHigin
Paul Higinbotham (PaulHigin)https://github.com/PaulHigin
on Jun 1, 2017https://github.com/PowerShell/PowerShell/issues/2321#issuecomment-305550216
https://github.com/joeyaiello
Joey Aiello (joeyaiello)https://github.com/joeyaiello
on Jun 1, 2017https://github.com/PowerShell/PowerShell/issues/2321#issuecomment-305568409
https://github.com/iSazonov
Ilya (iSazonov)https://github.com/iSazonov
on Jun 2, 2017https://github.com/PowerShell/PowerShell/issues/2321#issuecomment-305687171
Paul Higinbotham (@PaulHigin)https://github.com/PaulHigin
sergei (@vors)https://github.com/vors
cfmakerawhttp://rachid.koucha.free.fr/tech_corner/pty_pdip.html
Steve Lee (SteveL-MSFT)https://github.com/SteveL-MSFT
on Jun 7, 2017https://github.com/PowerShell/PowerShell/issues/2321#event-1114421928
https://github.com/PaulHigin
Paul Higinbotham (PaulHigin)https://github.com/PaulHigin
on Jun 19, 2017https://github.com/PowerShell/PowerShell/issues/2321#issuecomment-309591255
Paul Higinbotham (PaulHigin)https://github.com/PaulHigin
completedhttps://github.com/PowerShell/PowerShell/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
on Jun 19, 2017https://github.com/PowerShell/PowerShell/issues/2321#event-1130011689
Ilya (iSazonov)https://github.com/iSazonov
Resolution-FixedThe issue is fixed.https://github.com/PowerShell/PowerShell/issues?q=state%3Aopen%20label%3A%22Resolution-Fixed%22
on Jun 20, 2017https://github.com/PowerShell/PowerShell/issues/2321#event-1130316495
Sign up for freehttps://github.com/signup?return_to=https://github.com/PowerShell/PowerShell/issues/2321
Sign in to commenthttps://github.com/login?return_to=https://github.com/PowerShell/PowerShell/issues/2321
Paul Higinbotham (PaulHigin)https://github.com/PaulHigin
Issue-BugIssue has been identified as a bug in the producthttps://github.com/PowerShell/PowerShell/issues?q=state%3Aopen%20label%3A%22Issue-Bug%22
OS-Linuxhttps://github.com/PowerShell/PowerShell/issues?q=state%3Aopen%20label%3A%22OS-Linux%22
OS-macOShttps://github.com/PowerShell/PowerShell/issues?q=state%3Aopen%20label%3A%22OS-macOS%22
Resolution-FixedThe issue is fixed.https://github.com/PowerShell/PowerShell/issues?q=state%3Aopen%20label%3A%22Resolution-Fixed%22
WG-RemotingPSRP issues with any transport layerhttps://github.com/PowerShell/PowerShell/issues?q=state%3Aopen%20label%3A%22WG-Remoting%22
6.0.0-GAhttps://github.com/PowerShell/PowerShell/milestone/27
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.