Skip to content

SSH config is not updated if Coder hostnames are already present in the config #11

Closed
@fioan89

Description

@fioan89

coder config-ssh is blocked, waiting for input from user if the Coder Workspace hosts are already configured in the ssh config file.

2022-06-16 23:56:07,952 [ 170305]   INFO - CoderAuthStepView - coder-cli config-ssh output: [1mThe current executable path does not match the executable path found in $PATH.[0m
  | This may cause issues connecting to your workspace via SSH.
  | 	Current executable path: "/var/folders/pc/6kk2q9nx1gl95bd6f_g8hfww0000gn/T/coder-darwin-amd64-v0.0.0-devel+93b1425"
  | 	Executable path in $PATH: ""

> The following changes will be made to your SSH configuration:

    * Update coder config section in /Users/fauri/.ssh/config

  To see changes, run diff:

    $ coder config-ssh --diff

  Continue? ([1myes[0m/no) 

Effectively, most of the time SSH connections can't be tunneled due to invalid SSH configuration.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions