test/support/vagrant_wrapper.rb in sshkit-1.18.2 vs test/support/vagrant_wrapper.rb in sshkit-1.19.0
- old
+ new
@@ -44,12 +44,21 @@
def vm_host(vm)
host_options = {
user: vm['user'] || 'vagrant',
hostname: vm['hostname'] || 'localhost',
port: vm['port'] || '22',
- password: vm['password'] || 'vagrant'
+ password: vm['password'] || 'vagrant',
+ ssh_options: host_verify_options
}
SSHKit::Host.new(host_options)
+ end
+
+ def host_verify_options
+ if Net::SSH::Version::MAJOR >= 5
+ { verify_host_key: :never }
+ else
+ { paranoid: false }
+ end
end
end
end