Title: Agent SSH server should use a consistent key over workspace restarts · Issue #16490 · coder/coder · GitHub
Open Graph Title: Agent SSH server should use a consistent key over workspace restarts · Issue #16490 · coder/coder
X Title: Agent SSH server should use a consistent key over workspace restarts · Issue #16490 · coder/coder
Description: Summary We should enhance the agent to use the same SSH key each time the workspace is restarted, so that users of Coder VPN (#14859) can SSH into their workspaces with no extra config steps. I think it is acceptable to just use a hardco...
Open Graph Description: Summary We should enhance the agent to use the same SSH key each time the workspace is restarted, so that users of Coder VPN (#14859) can SSH into their workspaces with no extra config steps. I thi...
X Description: Summary We should enhance the agent to use the same SSH key each time the workspace is restarted, so that users of Coder VPN (#14859) can SSH into their workspaces with no extra config steps. I thi...
Opengraph URL: https://github.com/coder/coder/issues/16490
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Agent SSH server should use a consistent key over workspace restarts","articleBody":"## Summary\n\nWe should enhance the agent to use the same SSH key each time the workspace is restarted, so that users of Coder VPN (#14859) can SSH into their workspaces with no extra config steps.\n\nI think it is acceptable to just use a hardcoded SSH key, since the Wireguard protocol routes packets based on the tunnel crypto keys, so anti-spoofing of the workspace is handled at this lower layer.\n\n## Background\nToday we handle end user SSH connections with the Coder CLI, either directly with the `coder ssh` command, or indirectly by instructing the SSH process to start `coder` as a proxy command. In both these circumstances, we are able to configure the SSH client to ignore the fact that our workspace SSH server uses a different key each time the workspace is restarted. This is very non-standard, and a default configured SSH client will reject reconnection to the same workspace after a restart.\n\ne.g.\n\n```\n@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@\n@ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @\n@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@\nIT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!\nSomeone could be eavesdropping on you right now (man-in-the-middle attack)!\nIt is also possible that a host key has just been changed.\nThe fingerprint for the RSA key sent by the remote host is\nSHA256:JKCBMANKUlybkSCoLMr9xgXkxftOaQrggR4NA0LK6j0.\nPlease contact your system administrator.\nAdd correct host key in C:\\\\Users\\\\micha/.ssh/known_hosts to get rid of this message.\nOffending RSA key in C:\\\\Users\\\\micha/.ssh/known_hosts:4\nHost key for [syncthing-dg.coder]:1 has changed and you have requested strict checking.\nHost key verification failed.\n```\n\nIf we want Coder VPN users to connect over SSH without special config, we need to use a consistent key.","author":{"url":"https://github.com/spikecurtis","@type":"Person","name":"spikecurtis"},"datePublished":"2025-02-07T12:49:37Z","url":"https://github.com/coder/coder/issues/16490"}
| 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:988eefd2-a609-6a95-bad4-174555bd4d4f |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | CCD2:38EE04:D1A82:11876C:6B0182A1 |
| html-safe-nonce | 51a4ac659a9a55e38189b75e9ca0eb3d191979b89060414efabd6e84e6431d35 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDQ0QyOjM4RUUwNDpEMUE4MjoxMTg3NkM6NkIwMTgyQTEiLCJ2aXNpdG9yX2lkIjoiODE3OTExMTI2MTAxMTgwNDgzMyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | a5f169880fddac1fd1ebc23c5e7a9230d2cd6bc25898af4a804551713a0a2937 |
| hovercard-subject-tag | issue:2838085988 |
| 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/16490/issue_layout |
| twitter:image | https://opengraph.githubassets.com/8b5ee9a704fc1fffe5c74a1e8ff6905a4eb02877a906e63a64aa85522926f468/coder/coder/issues/16490 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/8b5ee9a704fc1fffe5c74a1e8ff6905a4eb02877a906e63a64aa85522926f468/coder/coder/issues/16490 |
| og:image:alt | Summary We should enhance the agent to use the same SSH key each time the workspace is restarted, so that users of Coder VPN (#14859) can SSH into their workspaces with no extra config steps. I thi... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | spikecurtis |
| 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