Title: Modify user SSH config with single `Include` statement instead of managed block · Issue #1326 · coder/coder · GitHub
Open Graph Title: Modify user SSH config with single `Include` statement instead of managed block · Issue #1326 · coder/coder
X Title: Modify user SSH config with single `Include` statement instead of managed block · Issue #1326 · coder/coder
Description: What is your suggestion? We could improve the user experience by only adding a single line to the users SSH config. This would achieve the same functionality that we have currently whilst keeping the users SSH config cleaner and not rely...
Open Graph Description: What is your suggestion? We could improve the user experience by only adding a single line to the users SSH config. This would achieve the same functionality that we have currently whilst keeping t...
X Description: What is your suggestion? We could improve the user experience by only adding a single line to the users SSH config. This would achieve the same functionality that we have currently whilst keeping t...
Opengraph URL: https://github.com/coder/coder/issues/1326
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Modify user SSH config with single `Include` statement instead of managed block","articleBody":"## What is your suggestion?\r\n\r\nWe could improve the user experience by only adding a single line to the users SSH config. This would achieve the same functionality that we have currently whilst keeping the users SSH config cleaner and not rely on magic syntax.\r\n\r\n`~/.ssh/config`:\r\n```\r\nInclude coder.d/*\r\n```\r\n\r\nWe probably want to include a comment explaining the line, but it's all that's required.\r\n\r\n`~/.ssh/coder.d/workspace-name`:\r\n```\r\nHost coder.workspace-name\r\n\tHostName coder.workspace-name\r\n\t...\r\n```\r\n\r\nTo ensure the coder SSH config is active, we only need to check for the presence of `Include coder.d/*` but the user is allowed to move it anywhere in the config.\r\n\r\nThis would replace the current approach of using a block in `~/.ssh/config`:\r\n```\r\n# ------------START-CODER-----------\r\n# This was generated by \"coder config-ssh\".\r\n#\r\n# To remove this blob, run:\r\n#\r\n# coder config-ssh --remove\r\n#\r\n# You should not hand-edit this section, unless you are deleting it.`\r\nHost coder.workspace-name\r\n\tHostName coder.workspace-name\r\n\t...\r\n# ------------END-CODER------------\r\n```\r\n\r\nThis functionality was released in OpenSSH 7.3p1 (2016-08-01), I think it's fairly safe to assume that this version of SSH at minimum will be available, or do we know of cases where this is not true?\r\n\r\n## Why do you want this feature?\r\n\r\nAfter a discussion in BE Variety we concluded that it would be a nice improvement to the user experience to make a more minimal one-time change to the user SSH config.\r\n\r\nGenerally users don't like it when programs make changes to their configuration files, this change is minimal and perhaps more acceptable. Especially if the user is informed that it's a one-time addition.\r\n\r\n## Are there any workarounds to get this functionality today?\r\n\r\nWe could continue using the existing functionality.\r\n\r\n## Are you interested in submitting a PR for this?\r\n\r\nYes.","author":{"url":"https://github.com/mafredri","@type":"Person","name":"mafredri"},"datePublished":"2022-05-06T17:04:18Z","url":"https://github.com/coder/coder/issues/1326"}
| 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:70afb724-02b3-5184-557e-4d031c221137 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9A4C:2835F0:48A690:600A22:6B0176BF |
| html-safe-nonce | b22a7f5eee0acab58eeb71ae650c4978384fc055d10ebb24153a6fe1107fc8f0 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5QTRDOjI4MzVGMDo0OEE2OTA6NjAwQTIyOjZCMDE3NkJGIiwidmlzaXRvcl9pZCI6Ijg5NDcxMjgwNzg3MDI4MzUzOTEiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 65b778cd6ff152519f755b28384e8094e78778e13fd064ca73be8a68c988731b |
| hovercard-subject-tag | issue:1228096783 |
| 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/coder/coder/1326/issue_layout |
| twitter:image | https://opengraph.githubassets.com/6e4327664098a8660b2b0ac8def3db749893632f3156d97fe3b756a5e917bcca/coder/coder/issues/1326 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/6e4327664098a8660b2b0ac8def3db749893632f3156d97fe3b756a5e917bcca/coder/coder/issues/1326 |
| og:image:alt | What is your suggestion? We could improve the user experience by only adding a single line to the users SSH config. This would achieve the same functionality that we have currently whilst keeping t... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | mafredri |
| hostname | github.com |
| expected-hostname | github.com |
| None | cc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c |
| turbo-cache-control | no-preview |
| go-import | github.com/coder/coder git https://github.com/coder/coder.git |
| octolytics-dimension-user_id | 95932066 |
| octolytics-dimension-user_login | coder |
| octolytics-dimension-repository_id | 440752086 |
| octolytics-dimension-repository_nwo | coder/coder |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 440752086 |
| octolytics-dimension-repository_network_root_nwo | coder/coder |
| 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 | 8c77c9e8439031ad54c75a250694842892f693e1 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width