LogLevel QUIET for SSH to suppress known hosts warning [GH-847]

This commit is contained in:
Mitchell Hashimoto 2012-04-02 09:57:16 -07:00
parent 285a07ebb3
commit e98cedf0e1
3 changed files with 3 additions and 1 deletions

View File

@ -3,6 +3,7 @@
- Improve the SSH "ready?" check. [GH-841] - Improve the SSH "ready?" check. [GH-841]
- Human friendly error if connection times out for HTTP downloads. [GH-849] - Human friendly error if connection times out for HTTP downloads. [GH-849]
- Detect when the VirtualBox installation is incomplete and error. [GH-846] - 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) ## 1.0.2 (March 25, 2012)

View File

@ -76,7 +76,7 @@ module Vagrant
# Command line options # Command line options
command_options = ["-p", options[:port].to_s, "-o", "UserKnownHostsFile=/dev/null", 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 # Solaris/OpenSolaris/Illumos uses SunSSH which doesn't support the IdentitiesOnly option
command_options += ["-o", "IdentitiesOnly=yes"] if !Util::Platform.solaris? command_options += ["-o", "IdentitiesOnly=yes"] if !Util::Platform.solaris?

View File

@ -7,6 +7,7 @@ Host <%= host_key %>
PasswordAuthentication no PasswordAuthentication no
IdentityFile <%= private_key_path %> IdentityFile <%= private_key_path %>
IdentitiesOnly yes IdentitiesOnly yes
LogLevel QUIET
<% if forward_agent -%> <% if forward_agent -%>
ForwardAgent yes ForwardAgent yes
<% end -%> <% end -%>