From b9683dbdfdbea5815c2cf48b20aada181dca1be3 Mon Sep 17 00:00:00 2001 From: Marco Vanotti Date: Mon, 17 Aug 2020 13:29:40 -0700 Subject: vm/vmimpl: disallow ssh authentication agent This commit adds a new option to SSH options, disallowing the authentication agent. This is specially useful when you are testing in a machine that sets the `SSH_AUTH_SOCK` environment variable, as ssh will try to use that authentication agent on each ssh connection. --- vm/vmimpl/util.go | 1 + 1 file changed, 1 insertion(+) diff --git a/vm/vmimpl/util.go b/vm/vmimpl/util.go index 418ae2d66..317d5f0c6 100644 --- a/vm/vmimpl/util.go +++ b/vm/vmimpl/util.go @@ -69,6 +69,7 @@ func sshArgs(debug bool, sshKey, portArg string, port int) []string { "-o", "UserKnownHostsFile=/dev/null", "-o", "BatchMode=yes", "-o", "IdentitiesOnly=yes", + "-o", "IdentityAgent=none", "-o", "StrictHostKeyChecking=no", "-o", "ConnectTimeout=10", } -- cgit mrf-deployment