Added "IdentitiesOnly" flag to `vagrant ssh` to avoid "Too Many Auth Failures" error message

This commit is contained in:
Mitchell Hashimoto 2010-08-02 19:52:11 -07:00
parent 22a9e3fe3d
commit f3a6dc8479
2 changed files with 4 additions and 1 deletions

View File

@ -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`.

View File

@ -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