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
Clicking the new "SSH" access button on a workspace in the Coder website shows a tooltip that reads:
Run the following commands to connect with SSH:
Configure ssh - only needs to be run once, or after managing workspaces
coder config-ssh
Connect to the agent
ssh coder.<WORKSPACE_NAME>.dev
Expected Behavior
Running coder config-ssh and then ssh coder.<WORKSPACE_NAME>.dev in a terminal connects you over SSH to the workspace.
Current Behavior
Running coder config-ssh and then ssh coder.<WORKSPACE_NAME>.dev in a terminal shows the following error:
ssh: Could not resolve hostname coder.<WORKSPACE_NAME>.dev: nodename nor servname provided, or not known
However ssh coder.<WORKSPACE_NAME> works (without .dev). I understand dev is the name we gave to the coder_agent resource in our workspace template file.
The text was updated successfully, but these errors were encountered:
The behavior of coder ssh is that if the workspace has multiple agents, you have to specify the agent name explicitly, but if there's only one agent, either coder ssh <WORKSPACE_NAME> or coder ssh <WORKSPACE_NAME>.<AGENT_NAME> works.
On the other hand, if there's only a single agent then config-ssh only sets up the SSH config to recognize coder.<WORKSPACE_NAME>, not coder.<WORKSPACE_NAME>.<AGENT_NAME>. We should change this to be consistent with coder ssh.
kylecarbs
changed the title
Bug in v0.7.12 6f34cbf: Workspace SSH access button tooltip provides invalid SSH command
Workspace SSH access button tooltip provides invalid command
Jul 18, 2022
Clicking the new "SSH" access button on a workspace in the Coder website shows a tooltip that reads:
Expected Behavior
Running
coder config-ssh
and thenssh coder.<WORKSPACE_NAME>.dev
in a terminal connects you over SSH to the workspace.Current Behavior
Running
coder config-ssh
and thenssh coder.<WORKSPACE_NAME>.dev
in a terminal shows the following error:However
ssh coder.<WORKSPACE_NAME>
works (without.dev
). I understanddev
is the name we gave to thecoder_agent
resource in our workspace template file.The text was updated successfully, but these errors were encountered: