lib/chef/knife/bootstrap_windows_ssh.rb in knife-windows-0.5.10.rc.1 vs lib/chef/knife/bootstrap_windows_ssh.rb in knife-windows-0.5.10
- old
+ new
@@ -57,15 +57,15 @@
option :identity_file,
:short => "-i IDENTITY_FILE",
:long => "--identity-file IDENTITY_FILE",
:description => "The SSH identity file used for authentication"
- option :no_host_key_verify,
- :long => "--no-host-key-verify",
+ option :host_key_verification,
+ :long => "--[no-]host-key-verification",
:description => "Disable host key verification",
:boolean => true,
- :default => false
+ :default => true
def run
bootstrap
end
@@ -75,10 +75,10 @@
ssh.config[:ssh_user] = locate_config_value(:ssh_user)
ssh.config[:ssh_password] = locate_config_value(:ssh_password)
ssh.config[:ssh_port] = locate_config_value(:ssh_port)
ssh.config[:identity_file] = config[:identity_file]
ssh.config[:manual] = true
- ssh.config[:no_host_key_verify] = config[:no_host_key_verify]
+ ssh.config[:host_key_verify] = config[:host_key_verify]
ssh
end
end
end