cmd/tailscale: [ssh] enable StrictHostKeyChecking mode

Updates #3802

Signed-off-by: Maisem Ali <maisem@tailscale.com>
pull/4436/head
Maisem Ali 3 years ago committed by Maisem Ali
parent 8f5e5bff1e
commit 945879fa38

@ -79,9 +79,13 @@ func runSSH(ctx context.Context, args []string) error {
argv := append([]string{
ssh,
// Only trust SSH hosts that we know about.
"-o", fmt.Sprintf("UserKnownHostsFile %s",
shellescape.Quote(knownHostsFile),
),
"-o", "UpdateHostKeys no",
"-o", "StrictHostKeyChecking yes",
"-o", fmt.Sprintf("ProxyCommand %s --socket=%s nc %%h %%p",
shellescape.Quote(tailscaleBin),
shellescape.Quote(rootArgs.socket),

Loading…
Cancel
Save