From efd7c790e6f90e66c523a0c018c10b8652d6aa8e Mon Sep 17 00:00:00 2001 From: "Will St. Clair" Date: Thu, 5 May 2011 15:32:02 -0500 Subject: [PATCH] Suppress the "added to known hosts file" warning Vagrant already disables StrictHostKeyChecking and redirects UserKnownHostsFile to /dev/null, so we may as well suppress the meaningless warning also. --- lib/vagrant/ssh.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/vagrant/ssh.rb b/lib/vagrant/ssh.rb index 33709e7ca..9066926a3 100644 --- a/lib/vagrant/ssh.rb +++ b/lib/vagrant/ssh.rb @@ -42,7 +42,7 @@ module Vagrant # Command line options command_options = ["-p #{options[:port]}", "-o UserKnownHostsFile=/dev/null", "-o StrictHostKeyChecking=no", "-o IdentitiesOnly=yes", - "-i #{options[:private_key_path]}"] + "-i #{options[:private_key_path]}", "-o LogLevel=ERROR"] command_options << "-o ForwardAgent=yes" if env.config.ssh.forward_agent if env.config.ssh.forward_x11