Title: sudo command does not work in remote session to Linux machine · Issue #1527 · PowerShell/PowerShell · GitHub
Open Graph Title: sudo command does not work in remote session to Linux machine · Issue #1527 · PowerShell/PowerShell
X Title: sudo command does not work in remote session to Linux machine · Issue #1527 · PowerShell/PowerShell
Description: Steps to reproduce Build and setup SSH based remoting (see docs) on a Linux machine Start an interactive remote session to the same machine Enter-PSSession -HostName -UserName [] C:> sudo ls /proc/powershell Expected behavior sudo comman...
Open Graph Description: Steps to reproduce Build and setup SSH based remoting (see docs) on a Linux machine Start an interactive remote session to the same machine Enter-PSSession -HostName -UserName [] C:> sudo ls /proc/...
X Description: Steps to reproduce Build and setup SSH based remoting (see docs) on a Linux machine Start an interactive remote session to the same machine Enter-PSSession -HostName -UserName [] C:> sudo ls /pr...
Opengraph URL: https://github.com/PowerShell/PowerShell/issues/1527
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"sudo command does not work in remote session to Linux machine","articleBody":"## Steps to reproduce\n1. Build and setup SSH based remoting (see docs) on a Linux machine\n2. Start an interactive remote session to the same machine\n Enter-PSSession -HostName \u003cHostName> -UserName \u003cUserName>\n [\u003cHostName>] C:> sudo ls /proc/powershell\n## Expected behavior\n\nsudo command to run in remote interactive session.\n## Actual behavior\n\n```\nsudo : sudo: no tty present and no askpass program specified\n + CategoryInfo : NotSpecified: (sudo: no tty pr...ogram specified:String) [], RemoteException\n + FullyQualifiedErrorId : NativeCommandError\n```\n## Environment data\n\nName Value\n\n---\n\nPSVersion 5.1.10032.0\nPSEdition PowerShellCore\nPSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}\nBuildVersion 3.0.0.0\nGitCommitId v0.6.0-392-ga5b5dc576b8006c0d0a83a5c538f382d9fa65dc6\nCLRVersion\nWSManStackVersion 3.0\nPSRemotingProtocolVersion 2.3\nSerializationVersion 1.1.0.1\n","author":{"url":"https://github.com/PaulHigin","@type":"Person","name":"PaulHigin"},"datePublished":"2016-07-26T22:44:25Z","url":"https://github.com/PowerShell/PowerShell/issues/1527"}
| 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:6303e3fb-4b0a-6dcc-a81c-30bc74904956 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | EADC:3921B2:1C2397:253B09:6AFD1208 |
| html-safe-nonce | 86caeb95c212a382ba71920e6e61750fe9607d126cf09c26b71299092485718a |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFQURDOjM5MjFCMjoxQzIzOTc6MjUzQjA5OjZBRkQxMjA4IiwidmlzaXRvcl9pZCI6IjUyMjQzMDI4ODUyNjAzMDA4MDkiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | b80747f4ba9de1cea76346180af71a948cc3a7c033db742fe397675c3a9c86a0 |
| hovercard-subject-tag | issue:167729746 |
| 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/1527/issue_layout |
| twitter:image | https://opengraph.githubassets.com/c978a669e1fb6a86027cdf4e66657d6e9d5810cbb5aa200cd27128da3614d14a/PowerShell/PowerShell/issues/1527 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/c978a669e1fb6a86027cdf4e66657d6e9d5810cbb5aa200cd27128da3614d14a/PowerShell/PowerShell/issues/1527 |
| og:image:alt | Steps to reproduce Build and setup SSH based remoting (see docs) on a Linux machine Start an interactive remote session to the same machine Enter-PSSession -HostName -UserName [] C:> sudo ls /proc/... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | PaulHigin |
| hostname | github.com |
| expected-hostname | github.com |
| None | 7c34e25df4e46e972c8f0225e63410231bdeb9ea5634597c712796bbcdb2e627 |
| 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 | 8fa571ebaa95e4e6bf872197c0e84b7dc48e6785 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width