Improved SSH logging for connections

This commit is contained in:
Mitchell Hashimoto 2013-04-19 10:14:45 -06:00
parent c0539d6e31
commit 105bf6129c
1 changed files with 6 additions and 1 deletions

View File

@ -194,7 +194,12 @@ module VagrantPlugins
:verbose => :debug
})
@logger.info("Attempting to connect to SSH: #{ssh_info[:host]}:#{ssh_info[:port]} as #{ssh_info[:username] || 'current_user'}.")
@logger.info("Attempting to connect to SSH...")
@logger.info(" - Host: #{ssh_info[:host]}")
@logger.info(" - Port: #{ssh_info[:port]}")
@logger.info(" - Username: #{ssh_info[:username]}")
@logger.info(" - Key Path: #{ssh_info[:private_key_path]}")
Net::SSH.start(ssh_info[:host], ssh_info[:username], connect_opts)
ensure
# Make sure we output the connection log