From f7ce0bc8937ab07ee8c571dd25440ce99930f543 Mon Sep 17 00:00:00 2001 From: Neil Wilson Date: Fri, 19 Apr 2013 17:03:26 +0100 Subject: [PATCH] Add ssh username to ssh connection log message --- plugins/communicators/ssh/communicator.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/communicators/ssh/communicator.rb b/plugins/communicators/ssh/communicator.rb index 8223d5a4b..dbe580acb 100644 --- a/plugins/communicators/ssh/communicator.rb +++ b/plugins/communicators/ssh/communicator.rb @@ -194,7 +194,7 @@ module VagrantPlugins :verbose => :debug }) - @logger.info("Attempting to connect to SSH: #{ssh_info[:host]}:#{ssh_info[:port]}") + @logger.info("Attempting to connect to SSH: #{ssh_info[:host]}:#{ssh_info[:port]} as #{ssh_info[:username] || 'current_user'}.") Net::SSH.start(ssh_info[:host], ssh_info[:username], connect_opts) ensure # Make sure we output the connection log