From 38e7166a216663eaeaa63ecc7dfb7fa17d90770c Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Fri, 3 Jan 2014 09:55:34 -0800 Subject: [PATCH] communicators/ssh: support passwords --- plugins/communicators/ssh/communicator.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plugins/communicators/ssh/communicator.rb b/plugins/communicators/ssh/communicator.rb index bb0ae252c..eac6fe618 100644 --- a/plugins/communicators/ssh/communicator.rb +++ b/plugins/communicators/ssh/communicator.rb @@ -170,6 +170,7 @@ module VagrantPlugins :keys => ssh_info[:private_key_path], :keys_only => true, :paranoid => false, + :password => ssh_info[:password], :port => ssh_info[:port], :user_known_hosts_file => [] } @@ -222,6 +223,7 @@ module VagrantPlugins @logger.info(" - Host: #{ssh_info[:host]}") @logger.info(" - Port: #{ssh_info[:port]}") @logger.info(" - Username: #{ssh_info[:username]}") + @logger.info(" - Password? #{!!ssh_info[:password]}") @logger.info(" - Key Path: #{ssh_info[:private_key_path]}") Net::SSH.start(ssh_info[:host], ssh_info[:username], connect_opts)