Skip to content
This repository was archived by the owner on Aug 30, 2024. It is now read-only.

Commit 2f112e0

Browse files
committed
Fix auth for p2p
1 parent 7989159 commit 2f112e0

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

internal/cmd/configssh.go

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -206,16 +206,15 @@ func makeSSHConfig(host, userName, envName, privateKeyFilepath string, p2p bool)
206206
return fmt.Sprintf(
207207
`Host coder.%s
208208
HostName localhost
209-
User %s-%s
210-
ProxyCommand go run cmd/coder/main.go tunnel %s 22 stdio
209+
ProxyCommand coder tunnel %s 22 stdio
211210
StrictHostKeyChecking no
212211
ConnectTimeout=0
213-
IdentitiesOnly yes
214212
IdentityFile="%s"
215213
ServerAliveInterval 60
216214
ServerAliveCountMax 3
217-
`, envName, userName, envName, envName, privateKeyFilepath)
215+
`, envName, envName, privateKeyFilepath)
218216
}
217+
219218
return fmt.Sprintf(
220219
`Host coder.%s
221220
HostName %s

0 commit comments

Comments
 (0)