Skip to content

Commit 9056c53

Browse files
authored
fix: Disable known hosts checking for config-ssh (#1150)
This was causing the remote identity changed message. We don't need to verify remote hosts because we already auth via our API.
1 parent 2a57ea7 commit 9056c53

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

cli/configssh.go

+3
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,9 @@ func configSSH() *cobra.Command {
9999
"\tHostName coder."+hostname,
100100
"\tConnectTimeout=0",
101101
"\tStrictHostKeyChecking=no",
102+
// Without this, the "REMOTE HOST IDENTITY CHANGED"
103+
// message will appear.
104+
"\tUserKnownHostsFile=/dev/null",
102105
)
103106
if !skipProxyCommand {
104107
configOptions = append(configOptions, fmt.Sprintf("\tProxyCommand %q --global-config %q ssh --stdio %s", binaryFile, root, hostname))

0 commit comments

Comments
 (0)