From e3b9ddda1d8d8cab0588fd4c2e2a09e9fb8ce16c Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Mon, 4 Feb 2013 13:37:59 -0800 Subject: [PATCH] Specify specific auth methods to use for SSH. Specifically no "keyboard-interactive" EVER --- plugins/communicators/ssh/communicator.rb | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/plugins/communicators/ssh/communicator.rb b/plugins/communicators/ssh/communicator.rb index 94d19afaf..df9309e1e 100644 --- a/plugins/communicators/ssh/communicator.rb +++ b/plugins/communicators/ssh/communicator.rb @@ -137,13 +137,14 @@ module VagrantPlugins # Build the options we'll use to initiate the connection via Net::SSH opts = { - :port => ssh_info[:port], + :auth_methods => ["none", "publickey", "hostbased", "password"], + :config => false, + :forward_agent => ssh_info[:forward_agent], :keys => [ssh_info[:private_key_path]], :keys_only => true, - :user_known_hosts_file => [], :paranoid => false, - :config => false, - :forward_agent => ssh_info[:forward_agent] + :port => ssh_info[:port], + :user_known_hosts_file => [] } # Check that the private key permissions are valid