You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
bug: ssh to a multi-agent workspace from CLI is unintuitive #19812
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 printing wrong instructions.
Relevant Log Output
$ coder ls
WORKSPACE TEMPLATE STATUS HEALTHY LAST BUILT CURRENT VERSION OUTDATED STARTS AT STOPS AFTER
★ matifali/dogfood coder Started true 2h52m 3ac36b8 false 9:30AM Mon-Fri (Asia/Karachi) 12h
$ coder config-ssh
> The following changes will be made to your SSH configuration:
* Update the coder section in /Users/matifali/.ssh/config
Continue? (yes/no) yes
Updated "/Users/matifali/.ssh/config"
You should now be able to ssh into your workspace.
For example, try running:
$ ssh dogfood.coder
$ ssh dogfood.coder
Encountered an error running "coder ssh", see "coder ssh --help"for more information
error: multiple agents found, please specify the agent name, available agents: [coder dev]
Expected Behavior
CLI should provide a clear example of how to SSH into a workspace.
I would expect instructions like
error: multiple agents found, please specify the agent name, available agents: [coder dev]Try running: $ ssh dev.dogfood.me.coder $ ssh coder.dogfood.me.coder
Steps to Reproduce
Run coder config-ssh
Follow instructions and run ssh <workspace>
Follow instructions and try to guess the correct format to connect to a workspace with multiple agents.
Activity
fix(cli): enhance error handling for multiple agents in SSH command (#…