From f3a6dc8479eab7d91290e6b5914546450268cadc Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Mon, 2 Aug 2010 19:52:11 -0700 Subject: [PATCH] Added "IdentitiesOnly" flag to `vagrant ssh` to avoid "Too Many Auth Failures" error message --- CHANGELOG.md | 2 ++ lib/vagrant/ssh.rb | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 1d23f8311..823d91abd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,7 @@ ## 0.5.2 (unreleased) + - Added "IdentitiesOnly yes" to options when `vagrant ssh` is run to + avoid "Too Many Authentication Failures" error. [GH-131] - Fix regression with `package` not working. [GH-132] - Added ability to specify box url in `init`, which populates the Vagrantfile with the proper `config.vm.box_url`. diff --git a/lib/vagrant/ssh.rb b/lib/vagrant/ssh.rb index 3347bbdee..00072500e 100644 --- a/lib/vagrant/ssh.rb +++ b/lib/vagrant/ssh.rb @@ -33,7 +33,8 @@ module Vagrant # Command line options command_options = ["-p #{options[:port]}", "-o UserKnownHostsFile=/dev/null", - "-o StrictHostKeyChecking=no", "-i #{options[:private_key_path]}"] + "-o StrictHostKeyChecking=no", "-o IdentitiesOnly=yes", + "-i #{options[:private_key_path]}"] command_options << "-o ForwardAgent=yes" if env.config.ssh.forward_agent # Some hackery going on here. On Mac OS X Leopard (10.5), exec fails