Title: $PSSenderInfo.ConnectionString shouldn't contain 'http://localhost' in SSH-based remoting sessions. · Issue #11292 · PowerShell/PowerShell · GitHub
Open Graph Title: $PSSenderInfo.ConnectionString shouldn't contain 'http://localhost' in SSH-based remoting sessions. · Issue #11292 · PowerShell/PowerShell
X Title: $PSSenderInfo.ConnectionString shouldn't contain 'http://localhost' in SSH-based remoting sessions. · Issue #11292 · PowerShell/PowerShell
Description: In WinRM-based remoting sessions, $PSSenderInfo.ConnectionString contains the actual connection URL used. In SSH-based remoting sessions it seems to contain the fixed value http://localhost, which is misleading. Conversely, SSH connectio...
Open Graph Description: In WinRM-based remoting sessions, $PSSenderInfo.ConnectionString contains the actual connection URL used. In SSH-based remoting sessions it seems to contain the fixed value http://localhost, which ...
X Description: In WinRM-based remoting sessions, $PSSenderInfo.ConnectionString contains the actual connection URL used. In SSH-based remoting sessions it seems to contain the fixed value http://localhost, which ...
Opengraph URL: https://github.com/PowerShell/PowerShell/issues/11292
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"$PSSenderInfo.ConnectionString shouldn't contain 'http://localhost' in SSH-based remoting sessions.","articleBody":"In WinRM-based remoting sessions, `$PSSenderInfo.ConnectionString` contains the actual connection URL used.\r\n\r\nIn SSH-based remoting sessions it seems to contain the _fixed_ value `http://localhost`, which is misleading. Conversely, SSH connection information is not provided.\r\n\r\n\r\n# Steps to reproduce\r\n\r\nMake sure that SSH-based remoting is enabled on a test machine running a Unix-like OS (see https://docs.microsoft.com/en-us/powershell/scripting/learn/remoting/ssh-remoting-in-powershell-core)\r\n\r\n```powershell\r\nInvoke-Command -Hostname (hostname) { $PSSenderInfo.ConnectionString } |\r\n Should -Not -Be 'http://localhost'\r\n```\r\n\r\n# Expected behavior\r\n\r\nThe test should pass.\r\n\r\nAn `ssh:`-based URL should be reported.\r\n(Not sure whether one is actually used, but _some_ meaningful representation of the SSH connection should be used.)\r\n\r\n# Actual behavior\r\n\r\nThe test fails, because fixed string `http://localhost` is _always_ reported.\r\n\r\n```none\r\nExpected 'http://localhost' to be different from the actual value, \r\nbut got the same value.\r\n```\r\n\r\n# Environment data\r\n\r\n```none\r\nPowerShell Core v7.0.0-preview.6\r\n```\r\n","author":{"url":"https://github.com/mklement0","@type":"Person","name":"mklement0"},"datePublished":"2019-12-08T19:13:43Z","url":"https://github.com/PowerShell/PowerShell/issues/11292"}
| react-profiling | 0 |
| react-import-map | react,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-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:9b4c581b-50aa-c134-d667-e6cf09718cc7 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | CB86:74641:68453:9216B:6AFD594D |
| html-safe-nonce | 8896e8fc1e0a215a2007e3356c67864ab659a732e05b367e32c13bebe7cebcfe |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDQjg2Ojc0NjQxOjY4NDUzOjkyMTZCOjZBRkQ1OTREIiwidmlzaXRvcl9pZCI6IjEwNDk2NDQ0OTA4NzM5ODUzNTciLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 891782bf05ec92650b1019c337f3bd48abb160bf6e7302842aa4dc508bce5288 |
| hovercard-subject-tag | issue:534586368 |
| 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/11292/issue_layout |
| twitter:image | https://opengraph.githubassets.com/a0001136b8b2529e7f3cd5f28ee8b570648607194ddf9ba100cba6887163a7da/PowerShell/PowerShell/issues/11292 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/a0001136b8b2529e7f3cd5f28ee8b570648607194ddf9ba100cba6887163a7da/PowerShell/PowerShell/issues/11292 |
| og:image:alt | In WinRM-based remoting sessions, $PSSenderInfo.ConnectionString contains the actual connection URL used. In SSH-based remoting sessions it seems to contain the fixed value http://localhost, which ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | mklement0 |
| hostname | github.com |
| expected-hostname | github.com |
| None | 66653c2e55a6fff2930be1bdf07ee4f8aa137e3956d056c822563be6f878755e |
| 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 | b6f01f7cb9f35f8c09949773241a3d49dd04b340 |
| ui-target | canary-2 |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width