aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarco Vanotti <mvanotti@google.com>2020-08-17 13:29:40 -0700
committerDmitry Vyukov <dvyukov@google.com>2020-08-18 12:18:12 +0200
commitb9683dbdfdbea5815c2cf48b20aada181dca1be3 (patch)
treebd4fbfe359d768239161706004a57e329816abea
parent635f68f68031f6d8c250cace94131ae45d7df48f (diff)
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.
-rw-r--r--vm/vmimpl/util.go1
1 files changed, 1 insertions, 0 deletions
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",
}