Title: bug: ssh to a multi-agent workspace from CLI is unintuitive · Issue #19812 · coder/coder · GitHub
Open Graph Title: bug: ssh to a multi-agent workspace from CLI is unintuitive · Issue #19812 · coder/coder
X Title: bug: ssh to a multi-agent workspace from CLI is unintuitive · Issue #19812 · coder/coder
Description: Is there an existing issue for this? I have searched the existing issues Current Behavior When I try to SSH into my workspace with multiple agents. It does not provide an intuitive way to do that successfully and instead misguides by pri...
Open Graph Description: Is there an existing issue for this? I have searched the existing issues Current Behavior When I try to SSH into my workspace with multiple agents. It does not provide an intuitive way to do that s...
X Description: Is there an existing issue for this? I have searched the existing issues Current Behavior When I try to SSH into my workspace with multiple agents. It does not provide an intuitive way to do that s...
Opengraph URL: https://github.com/coder/coder/issues/19812
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"bug: ssh to a multi-agent workspace from CLI is unintuitive","articleBody":"### Is there an existing issue for this?\n\n- [x] I have searched the existing issues\n\n### Current Behavior\n\nWhen I try to SSH into my workspace with multiple agents. It does not provide an intuitive way to do that successfully and instead misguides by printing wrong instructions.\n\n### Relevant Log Output\n\n```shell\n$ coder ls\nWORKSPACE TEMPLATE STATUS HEALTHY LAST BUILT CURRENT VERSION OUTDATED STARTS AT STOPS AFTER\n★ matifali/dogfood coder Started true 2h52m 3ac36b8 false 9:30AM Mon-Fri (Asia/Karachi) 12h\n\n$ coder config-ssh\n> The following changes will be made to your SSH configuration:\n\n * Update the coder section in /Users/matifali/.ssh/config\n\n Continue? (yes/no) yes\n\nUpdated \"/Users/matifali/.ssh/config\"\nYou should now be able to ssh into your workspace.\nFor example, try running:\n\n $ ssh dogfood.coder\n\n$ ssh dogfood.coder\nEncountered an error running \"coder ssh\", see \"coder ssh --help\" for more information\nerror: multiple agents found, please specify the agent name, available agents: [coder dev]\n```\n\n### Expected Behavior\n\nCLI should provide a clear example of how to SSH into a workspace.\nI would expect instructions like\n\n```console\nerror: multiple agents found, please specify the agent name, available agents: [coder dev]\nTry running:\n\n $ ssh dev.dogfood.me.coder\n $ ssh coder.dogfood.me.coder\n```\n\n### Steps to Reproduce\n\n1. Run `coder config-ssh`\n2. Follow instructions and run `ssh \u003cworkspace>`\n3. Follow instructions and try to guess the correct format to connect to a workspace with multiple agents.\n\n### Environment\n\n- Coder version: https://github.com/coder/coder/commit/6a9b896f5b17b377ba75326e10a12f05b9cc93f4\n\n\n### Additional Context\n\nI have tested this on the latest version, The issue happens on multiple deployments, The issue occurs consistently","author":{"url":"https://github.com/matifali","@type":"Person","name":"matifali"},"datePublished":"2025-09-15T07:39:49Z","url":"https://github.com/coder/coder/issues/19812"}
| 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:2039eaea-2245-053f-451f-3365fee9406d |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E65A:1D20B7:1E3A762:2649525:6B019BD3 |
| html-safe-nonce | dacd69ec2e103411019ad1fb049889be32428b63713c101c58b0b95eab817e5b |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFNjVBOjFEMjBCNzoxRTNBNzYyOjI2NDk1MjU6NkIwMTlCRDMiLCJ2aXNpdG9yX2lkIjoiODQyODc2MjMxNjc2NTUwMjQxOSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 0bdf31c7c574321612bfcc2ae6da1d7a7f37362f59f35682377ae759625c26b5 |
| hovercard-subject-tag | issue:3416703256 |
| 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/19812/issue_layout |
| twitter:image | https://opengraph.githubassets.com/2bea3280f25c31ee0da93af0a78bf45aa2454726a4bc25fb9e8f51ff2ab8f5bb/coder/coder/issues/19812 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/2bea3280f25c31ee0da93af0a78bf45aa2454726a4bc25fb9e8f51ff2ab8f5bb/coder/coder/issues/19812 |
| og:image:alt | Is there an existing issue for this? I have searched the existing issues Current Behavior When I try to SSH into my workspace with multiple agents. It does not provide an intuitive way to do that s... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | matifali |
| 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