mirror of
https://github.com/tailscale/tailscale.git
synced 2025-03-01 19:51:58 +00:00
cmd/tailscale: [ssh] enable StrictHostKeyChecking mode
Updates #3802 Signed-off-by: Maisem Ali <maisem@tailscale.com>
This commit is contained in:
parent
8f5e5bff1e
commit
945879fa38
@ -79,9 +79,13 @@ func runSSH(ctx context.Context, args []string) error {
|
|||||||
argv := append([]string{
|
argv := append([]string{
|
||||||
ssh,
|
ssh,
|
||||||
|
|
||||||
|
// Only trust SSH hosts that we know about.
|
||||||
"-o", fmt.Sprintf("UserKnownHostsFile %s",
|
"-o", fmt.Sprintf("UserKnownHostsFile %s",
|
||||||
shellescape.Quote(knownHostsFile),
|
shellescape.Quote(knownHostsFile),
|
||||||
),
|
),
|
||||||
|
"-o", "UpdateHostKeys no",
|
||||||
|
"-o", "StrictHostKeyChecking yes",
|
||||||
|
|
||||||
"-o", fmt.Sprintf("ProxyCommand %s --socket=%s nc %%h %%p",
|
"-o", fmt.Sprintf("ProxyCommand %s --socket=%s nc %%h %%p",
|
||||||
shellescape.Quote(tailscaleBin),
|
shellescape.Quote(tailscaleBin),
|
||||||
shellescape.Quote(rootArgs.socket),
|
shellescape.Quote(rootArgs.socket),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user