summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTimothy Day <timday@amazon.com>2025-06-26 15:01:50 +0000
committerTimothy Day <timday@amazon.com>2025-06-26 19:39:26 +0000
commit295b17677d3de6fe1251f5cee2ce3f45bf508e88 (patch)
tree15fc9f1bccdfceacbf5a9adc0218cd1eb4498911
parent460f18e980342b41fab494cd2b7de217fd4a0feb (diff)
misc: add IdentitiesOnly to ssh command
Specify IdentitiesOnly=yes during ssh to prevent ssh from trying keys that won't work. Without this, we can sometimes fail to ssh if we have too many keys. Signed-off-by: Timothy Day <timday@amazon.com>
-rw-r--r--lib/libktest.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/libktest.sh b/lib/libktest.sh
index 5b449db..5cfc8f4 100644
--- a/lib/libktest.sh
+++ b/lib/libktest.sh
@@ -176,7 +176,8 @@ ktest_ssh()
-o UserKnownHostsFile=/dev/null \
-o NoHostAuthenticationForLocalhost=yes \
-o ServerAliveInterval=2 \
- -o ControlMaster=no \
+ -o ControlMaster=no \
+ -o IdentitiesOnly=yes \
)
if [[ -f $ktest_out/vm/ssh_port ]]; then