mirror of
https://github.com/vagrant-libvirt/vagrant-libvirt.git
synced 2025-02-25 18:55:27 -06:00
Merge pull request #857 from bashims/forward_ports-keys_only
enable IdentitiesOnly when config.ssh.keys_only is specified.
This commit is contained in:
commit
50f68cc018
@ -100,6 +100,7 @@ module VagrantPlugins
|
|||||||
StrictHostKeyChecking=no
|
StrictHostKeyChecking=no
|
||||||
PasswordAuthentication=no
|
PasswordAuthentication=no
|
||||||
ForwardX11=#{ssh_info[:forward_x11] ? 'yes' : 'no'}
|
ForwardX11=#{ssh_info[:forward_x11] ? 'yes' : 'no'}
|
||||||
|
IdentitiesOnly=#{ssh_info[:keys_only] ? 'yes' : 'no'}
|
||||||
) + ssh_info[:private_key_path].map do |pk|
|
) + ssh_info[:private_key_path].map do |pk|
|
||||||
"IdentityFile='\"#{pk}\"'"
|
"IdentityFile='\"#{pk}\"'"
|
||||||
end).map { |s| s.prepend('-o ') }.join(' ')
|
end).map { |s| s.prepend('-o ') }.join(' ')
|
||||||
|
Loading…
Reference in New Issue
Block a user