Skip to content

Commit 83a7e20

Browse files
committed
ssh: Don't add an entry to known_hosts
When running podman-bootc multiple times the known_hosts file quickly becomes cluttered with podman-bootc entries. Signed-off-by: Chris Kyrouac <[email protected]>
1 parent 74172ae commit 83a7e20

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)