Skip to content

Commit 9c2e608

Browse files
authored
Merge pull request #30 from ckyrouac/known-hosts
ssh: Don't add an entry to known_hosts
2 parents 04a08bc + 83a7e20 commit 9c2e608

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

pkg/vm/vm.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,9 @@ func (v *BootcVMCommon) RunSSH(inputArgs []string) error {
232232
"-o", "IdentitiesOnly=yes",
233233
"-o", "PasswordAuthentication=no",
234234
"-o", "StrictHostKeyChecking=no",
235-
"-o", "LogLevel=ERROR", "-o", "SetEnv=LC_ALL="}
235+
"-o", "LogLevel=ERROR",
236+
"-o", "SetEnv=LC_ALL=",
237+
"-o", "UserKnownHostsFile=/dev/null"}
236238
if len(inputArgs) > 0 {
237239
args = append(args, inputArgs...)
238240
} else {

0 commit comments

Comments
 (0)