Internal SSH ignores ssh config file. Also added PasswordAuthentication no to ssh-config output
This commit is contained in:
parent
eec0986bc7
commit
b56994d11d
@ -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
|
||||
|
||||
@ -4,4 +4,5 @@ Host <%= host_key %>
|
||||
Port <%= ssh_port %>
|
||||
UserKnownHostsFile /dev/null
|
||||
StrictHostKeyChecking no
|
||||
PasswordAuthentication no
|
||||
IdentityFile <%= private_key_path %>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user