Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion cmd/tailcat/cp.go
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ func clientCPMode(recursive, preserve bool, portOrIPPort, identityFile string, a
argv = append(argv,
"-o", "UpdateHostKeys no",
"-o", "StrictHostKeyChecking no",
"-o", "UserKnownHostsFile "+os.DevNull,
"-o", "UserKnownHostsFile /dev/null",
"-o", "LogLevel ERROR",
"-o", "ProxyCommand="+proxyCommand,
)
Expand Down
3 changes: 1 addition & 2 deletions cmd/tailcat/exec_e2e_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ package main

import (
"context"
"os"
"os/exec"
"path/filepath"
"strings"
Expand Down Expand Up @@ -139,7 +138,7 @@ func TestServeSSHExec(t *testing.T) {
ctx, cancel := context.WithTimeout(t.Context(), 30*time.Second)
t.Cleanup(cancel)
args := append([]string{
"-F", os.DevNull, // not the developer's ssh config: ControlMaster and friends
"-F", "/dev/null", // not the developer's ssh config: ControlMaster and friends
"-i", keyPath,
"-o", "IdentitiesOnly yes",
"-o", "UpdateHostKeys no",
Expand Down
2 changes: 1 addition & 1 deletion cmd/tailcat/files_e2e_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ func runSFTPBatch(t *testing.T, e *testEnv, addr, batch string) ([]byte, error)
defer cancel()
cmd := exec.CommandContext(ctx, "sftp",
"-o", "StrictHostKeyChecking no",
"-o", "UserKnownHostsFile "+os.DevNull,
"-o", "UserKnownHostsFile /dev/null",
"-o", "LogLevel ERROR",
"-o", "ProxyCommand="+proxyCommand,
"-b", batchFile,
Expand Down
2 changes: 1 addition & 1 deletion cmd/tailcat/ssh.go
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ func sshArgv(sshExe, proxyCommand, identityFile, sshDst string, cmdArgs []string
sshExe,
"-o", "UpdateHostKeys no",
"-o", "StrictHostKeyChecking no",
"-o", "UserKnownHostsFile " + os.DevNull,
"-o", "UserKnownHostsFile /dev/null",
"-o", "LogLevel ERROR",
"-o", "ProxyCommand=" + proxyCommand,
}
Expand Down
2 changes: 1 addition & 1 deletion cmd/tailcat/ssh_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ func TestSSHArgv(t *testing.T) {
"/usr/bin/ssh",
"-o", "UpdateHostKeys no",
"-o", "StrictHostKeyChecking no",
"-o", "UserKnownHostsFile " + os.DevNull,
"-o", "UserKnownHostsFile /dev/null",
"-o", "LogLevel ERROR",
"-o", "ProxyCommand=proxy",
}
Expand Down
Loading