From 93b4799279bf1277bfc9a9e782b2ab09e66bcf0f Mon Sep 17 00:00:00 2001 From: Nathan LeClaire Date: Fri, 22 May 2015 14:02:58 -0700 Subject: [PATCH] Disable password authentication in SSH command This will turn off the password authentication prompt which some SSH commands experience if there is a lag between when we attempt the first SSH command and the key has been loaded on the server. Signed-off-by: Nathan LeClaire --- ssh/client.go | 1 + 1 file changed, 1 insertion(+) diff --git a/ssh/client.go b/ssh/client.go index c976f0fef9..1298cde21c 100644 --- a/ssh/client.go +++ b/ssh/client.go @@ -47,6 +47,7 @@ const ( var ( baseSSHArgs = []string{ + "-o", "PasswordAuthentication=no", "-o", "IdentitiesOnly=yes", "-o", "StrictHostKeyChecking=no", "-o", "UserKnownHostsFile=/dev/null",