Skip to content

Commit cfd1925

Browse files
europauluncleDecart
authored andcommitted
ssh: get rid of MitM attack warnings in tests
Get rid of the annoying SSH warnings about changed host keys when connecting to EVE over SSH by pointing SSH to /dev/null for the known_hosts file. Signed-off-by: Paul Gaiduk <paulg@zededa.com>
1 parent 6110b0f commit cfd1925

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

pkg/openevec/sdn.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import (
1515

1616
func (openEVEC *OpenEVEC) SdnForwardSSHToEve(commandToRun string) error {
1717
cfg := openEVEC.cfg
18-
arguments := fmt.Sprintf("-o IdentitiesOnly=yes -o ConnectTimeout=5 -o StrictHostKeyChecking=no -i %s "+
18+
arguments := fmt.Sprintf("-o IdentitiesOnly=yes -o ConnectTimeout=5 -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -i %s "+
1919
"-p FWD_PORT root@FWD_IP %s", sdnSSSHKeyPrivate(cfg.Eden.SSHKey), commandToRun)
2020
return openEVEC.SdnForwardCmd("", "eth0", 22, "ssh", strings.Fields(arguments)...)
2121
}

0 commit comments

Comments
 (0)