Skip to content

Commit 3e5f3d1

Browse files
committed
Always disregard ~/.ssh/config; only use specified identity file
Signed-off-by: Jan Dubois <[email protected]>
1 parent 86d6a93 commit 3e5f3d1

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)