Add ssh username to ssh connection log message

This commit is contained in:
Neil Wilson 2013-04-19 17:03:26 +01:00
parent 45267c85fe
commit f7ce0bc893
1 changed files with 1 additions and 1 deletions

View File

@ -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