diff --git a/CHANGELOG.md b/CHANGELOG.md index 2b87b141e..3462290d8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,7 @@ - Improve the SSH "ready?" check. [GH-841] - Human friendly error if connection times out for HTTP downloads. [GH-849] - Detect when the VirtualBox installation is incomplete and error. [GH-846] + - Use `LogLevel QUIET` for SSH to suppress the known hosts warning. [GH-847] ## 1.0.2 (March 25, 2012) diff --git a/lib/vagrant/ssh.rb b/lib/vagrant/ssh.rb index 59cace321..03dfefe4f 100644 --- a/lib/vagrant/ssh.rb +++ b/lib/vagrant/ssh.rb @@ -76,7 +76,7 @@ module Vagrant # Command line options command_options = ["-p", options[:port].to_s, "-o", "UserKnownHostsFile=/dev/null", - "-o", "StrictHostKeyChecking=no", "-o", "LogLevel=ERROR"] + "-o", "StrictHostKeyChecking=no", "-o", "LogLevel=QUIET"] # Solaris/OpenSolaris/Illumos uses SunSSH which doesn't support the IdentitiesOnly option command_options += ["-o", "IdentitiesOnly=yes"] if !Util::Platform.solaris? diff --git a/templates/commands/ssh_config/config.erb b/templates/commands/ssh_config/config.erb index 0b39fe412..16cf0ed54 100644 --- a/templates/commands/ssh_config/config.erb +++ b/templates/commands/ssh_config/config.erb @@ -7,6 +7,7 @@ Host <%= host_key %> PasswordAuthentication no IdentityFile <%= private_key_path %> IdentitiesOnly yes + LogLevel QUIET <% if forward_agent -%> ForwardAgent yes <% end -%>