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.
This commit is contained in:
Kyle Carberry
2022-04-25 18:59:18 +00:00
committed by GitHub
parent 2a57ea757a
commit 9056c53054
+3
View File
@@ -99,6 +99,9 @@ func configSSH() *cobra.Command {
"\tHostName coder."+hostname,
"\tConnectTimeout=0",
"\tStrictHostKeyChecking=no",
// Without this, the "REMOTE HOST IDENTITY CHANGED"
// message will appear.
"\tUserKnownHostsFile=/dev/null",
)
if !skipProxyCommand {
configOptions = append(configOptions, fmt.Sprintf("\tProxyCommand %q --global-config %q ssh --stdio %s", binaryFile, root, hostname))