net-ssh 2.1.0. Adds "IdentitiesOnly" support for net-ssh, fixing problems.

This commit is contained in:
Mitchell Hashimoto 2011-01-19 22:00:38 -08:00
parent ea7c99e992
commit 59fa9ac46b
4 changed files with 5 additions and 1 deletions

View File

@ -1,6 +1,8 @@
## 0.7.1 (unreleased) ## 0.7.1 (unreleased)
- Change error output with references to VirtualBox 3.2 to 4.0. - Change error output with references to VirtualBox 3.2 to 4.0.
- Internal SSH through net-ssh now uses `IdentitiesOnly` thanks to
upstream net-ssh fix.
## 0.7.0 (January 19, 2011) ## 0.7.0 (January 19, 2011)

View File

@ -70,6 +70,7 @@ module Vagrant
Net::SSH.start(env.config.ssh.host, Net::SSH.start(env.config.ssh.host,
env.config.ssh.username, env.config.ssh.username,
opts.merge( :keys => [env.config.ssh.private_key_path], opts.merge( :keys => [env.config.ssh.private_key_path],
:keys_only => true,
:user_known_hosts_file => [], :user_known_hosts_file => [],
:paranoid => false, :paranoid => false,
:config => false)) do |ssh| :config => false)) do |ssh|

View File

@ -147,6 +147,7 @@ class SshTest < Test::Unit::TestCase
assert_equal @env.config.ssh.username, username assert_equal @env.config.ssh.username, username
assert_equal @ssh.port, opts[:port] assert_equal @ssh.port, opts[:port]
assert_equal [@env.config.ssh.private_key_path], opts[:keys] assert_equal [@env.config.ssh.private_key_path], opts[:keys]
assert opts[:keys_only]
true true
end end
@ssh.execute @ssh.execute

View File

@ -18,7 +18,7 @@ Gem::Specification.new do |s|
s.add_dependency "erubis", "~> 2.6.6" s.add_dependency "erubis", "~> 2.6.6"
s.add_dependency "json", "~> 1.4.6" s.add_dependency "json", "~> 1.4.6"
s.add_dependency "mario", "~> 0.0.6" s.add_dependency "mario", "~> 0.0.6"
s.add_dependency "net-ssh", "~> 2.0.23" s.add_dependency "net-ssh", "~> 2.1.0"
s.add_dependency "net-scp", "~> 1.0.4" s.add_dependency "net-scp", "~> 1.0.4"
s.add_dependency "i18n", "~> 0.5.0" s.add_dependency "i18n", "~> 0.5.0"
s.add_dependency "thor", "~> 0.14.6" s.add_dependency "thor", "~> 0.14.6"