Skip to content

Coder CLI on Windows: SSH ProxyCommand does not include quotes #7639

Closed
@bpmct

Description

@bpmct

It seems like when I manually download coder.exe and add to PATH, the ProxyCommand does not include quotes which results in failed SSH connections in many cases, including when using git bash.

From manual .exe download, added to path, and coder config-ssh in git bash:

Host coder.dev
	HostName coder.dev
	ConnectTimeout=0
	StrictHostKeyChecking=no
	UserKnownHostsFile=/dev/null
	LogLevel ERROR
	ProxyCommand C:\Users\benpotter\Desktop\bin\coder.exe --global-config C:\Users\benpotter\AppData\Roaming\coderv2 ssh --stdio dev

Result when I try to SSH:

$ ssh coder.dev
/usr/bin/bash: line 1: exec: C:UsersbenpotterDesktopbincoder.exe: not found
kex_exchange_identification: Connection closed by remote host

From msi installer (this works):

Host coder.dev
	HostName coder.dev
	ConnectTimeout=0
	StrictHostKeyChecking=no
	UserKnownHostsFile=/dev/null
	LogLevel ERROR
	ProxyCommand "C:\Program Files\Coder\bin\coder.exe" --global-config C:\Users\benpotter\AppData\Roaming\coderv2 ssh --stdio dev

Metadata

Metadata

Assignees

Labels

s1Bugs that break core workflows. Only humans may set this.

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions