Internal SSH ignores ssh config file. Also added `PasswordAuthentication no` to ssh-config output

This commit is contained in:
Mitchell Hashimoto 2010-06-05 18:52:12 -07:00
parent eec0986bc7
commit b56994d11d
2 changed files with 5 additions and 1 deletions

View File

@ -48,7 +48,10 @@ module Vagrant
Net::SSH.start(env.config.ssh.host,
env.config[:ssh][:username],
opts.merge( :port => port,
:keys => [env.config.ssh.private_key_path])) do |ssh|
:keys => [env.config.ssh.private_key_path],
:user_known_hosts_file => [],
:paranoid => false,
:config => false)) do |ssh|
yield SSH::Session.new(ssh)
end
end

View File

@ -4,4 +4,5 @@ Host <%= host_key %>
Port <%= ssh_port %>
UserKnownHostsFile /dev/null
StrictHostKeyChecking no
PasswordAuthentication no
IdentityFile <%= private_key_path %>