Title: PowerShell Core Enter-PSSession not exiting gracefully in Windows when connected to Linux. · Issue #4686 · PowerShell/PowerShell · GitHub
Open Graph Title: PowerShell Core Enter-PSSession not exiting gracefully in Windows when connected to Linux. · Issue #4686 · PowerShell/PowerShell
X Title: PowerShell Core Enter-PSSession not exiting gracefully in Windows when connected to Linux. · Issue #4686 · PowerShell/PowerShell
Description: I'm happy to say that I love connectivity in both directions 'Linux-to-Windows' and Windows-to-Linux' using OpenSSH-Win64. Now, in beta-6, I notice when exiting from Linux using Enter-PSSession in Windows, it doesn't exit gracefully. Mea...
Open Graph Description: I'm happy to say that I love connectivity in both directions 'Linux-to-Windows' and Windows-to-Linux' using OpenSSH-Win64. Now, in beta-6, I notice when exiting from Linux using Enter-PSSession in ...
X Description: I'm happy to say that I love connectivity in both directions 'Linux-to-Windows' and Windows-to-Linux' using OpenSSH-Win64. Now, in beta-6, I notice when exiting from Linux using Ent...
Opengraph URL: https://github.com/PowerShell/PowerShell/issues/4686
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"PowerShell Core Enter-PSSession not exiting gracefully in Windows when connected to Linux.","articleBody":"\u003c!--\r\n\r\nIf it is a bug report:\r\n- make sure you are able to repro it on the latest released version. \r\nYou can install the latest version from https://github.com/PowerShell/PowerShell/releases\r\n- Search the existing issues.\r\n- Refer to the [FAQ](../docs/FAQ.md).\r\n- Refer to the [known issues](../docs/KNOWNISSUES.md).\r\n- Fill out the following repro template\r\n\r\nIf it's not a bug, please remove the template and elaborate the issue in your own words.\r\n--\u003e\r\n\r\nI'm happy to say that I love connectivity in both directions 'Linux-to-Windows' and Windows-to-Linux' using OpenSSH-Win64. Now, in beta-6, I notice when exiting from Linux using Enter-PSSession in Windows, it doesn't exit gracefully. Meaning, that when typing 'Exit', its giving an error when it shouldn't.\r\n\r\nSteps to reproduce\r\n------------------\r\nIn Windows -\u003e connect to Linux:\r\nPS\u003e Enter-PSSession -hostname orion -username maxt\r\n: \r\n[orion]: PS /home/maxt\u003e exit\r\n(gives error message and then disconnect)\r\n\r\n```powershell\r\nEnter-PSSession -hostname orion -username maxt\r\n```\r\n\r\nExpected behavior\r\n-----------------\r\nTyping 'exit' should terminate session without any errors\r\n\r\nActual behavior\r\n---------------\r\nError message when exiting session.\r\n```\r\nPowerShell v6.0.0-beta.6\r\nCopyright (C) Microsoft Corporation. All rights reserved.\r\n\r\nWARNING: Appended Windows PowerShell PSModulePath\r\nLoading personal and system profiles took 2520ms.\r\nPS C:\\Program Files\\PowerShell\\6.0.0-beta.6\u003e enter-pssession -HostName orion -UserName maxt\r\nmaxt@orion's password:\r\n[orion]: PS /home/maxt\u003e exit\r\nA task was canceled.\r\nThe SSH client session has ended with error message: A task was canceled.\r\n + CategoryInfo : ResourceUnavailable: (:) [], ParentContainsErrorRecordException\r\n + FullyQualifiedErrorId : System.Management.Automation.Remoting.PSRemotingDataStructureException\r\n\r\nPS C:\\Program Files\\PowerShell\\6.0.0-beta.6\u003e\r\n```\r\n\r\nEnvironment data\r\n----------------\r\nWindows 10 Insider Build 16257\r\nUbuntu 16.04.3 LTS\r\nopenssh 0.0.19.0\r\n\r\n\u003c!-- provide the output of $PSVersionTable --\u003e\r\n\r\n```powershell\r\nPS C:\\Program Files\\PowerShell\\6.0.0-beta.6\u003e $PSVersionTable\r\n\r\nName Value\r\n---- -----\r\nPSVersion 6.0.0-beta\r\nPSEdition Core\r\nGitCommitId v6.0.0-beta.6\r\nOS Microsoft Windows 10.0.16275\r\nPlatform Win32NT\r\nPSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}\r\nPSRemotingProtocolVersion 2.3\r\nSerializationVersion 1.1.0.1\r\nWSManStackVersion 3.0\r\n\r\n```\r\n\r\n","author":{"url":"https://github.com/MaximoTrinidad","@type":"Person","name":"MaximoTrinidad"},"datePublished":"2017-08-27T20:51:16.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":4},"url":"https://github.com/4686/PowerShell/issues/4686"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:bba75183-538c-e697-a811-64532e1a9e79 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | CF80:15921E:416779:5D0DF2:6A572BEF |
| html-safe-nonce | 75e5c7acaab14f703b69a4c9dbe9e41bdd52bd4fcec7e4d269b9d618b29f9e7e |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDRjgwOjE1OTIxRTo0MTY3Nzk6NUQwREYyOjZBNTcyQkVGIiwidmlzaXRvcl9pZCI6IjM1NTU0MDg5MDY1MDM1NjcxOSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 52b1ec72c20729a46b3830c85f0abf63993c5c9b2ceaca18d76e9ecf94512bc4 |
| hovercard-subject-tag | issue:253188798 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/PowerShell/PowerShell/4686/issue_layout |
| twitter:image | https://opengraph.githubassets.com/f09c533cc48d2f8a3bb14cf80a6951a15f0f235ccbd582d5146255534906cc37/PowerShell/PowerShell/issues/4686 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/f09c533cc48d2f8a3bb14cf80a6951a15f0f235ccbd582d5146255534906cc37/PowerShell/PowerShell/issues/4686 |
| og:image:alt | I'm happy to say that I love connectivity in both directions 'Linux-to-Windows' and Windows-to-Linux' using OpenSSH-Win64. Now, in beta-6, I notice when exiting from Linux using Enter-PSSession in ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | MaximoTrinidad |
| hostname | github.com |
| expected-hostname | github.com |
| None | 4e7a7296a3830877cf21a6ad2a972c9e618a48915e03966cf0c53eb08e5aad98 |
| turbo-cache-control | no-preview |
| go-import | github.com/PowerShell/PowerShell git https://github.com/PowerShell/PowerShell.git |
| octolytics-dimension-user_id | 11524380 |
| octolytics-dimension-user_login | PowerShell |
| octolytics-dimension-repository_id | 49609581 |
| octolytics-dimension-repository_nwo | PowerShell/PowerShell |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 49609581 |
| octolytics-dimension-repository_network_root_nwo | PowerShell/PowerShell |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 2576d1f0198cf1588faf2edf27f1ed120903be10 |
| ui-target | canary-2 |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width