Skip to content

Commit 8049f2d

Browse files
authored
Merge pull request #110 from rancher-sandbox/ssh-no-global-config
Always disregard ~/.ssh/config; only use specified identity file
2 parents 86d6a93 + 3e5f3d1 commit 8049f2d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

pkg/sshutil/sshutil.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,8 @@ func CommonArgs(useDotSSH bool) ([]string, error) {
160160
"-o", "PreferredAuthentications=publickey",
161161
"-o", "Compression=no",
162162
"-o", "BatchMode=yes",
163+
"-o", "IdentitiesOnly=yes",
164+
"-F", "/dev/null",
163165
)
164166
return args, nil
165167
}

0 commit comments

Comments
 (0)