mirror of
https://github.com/puppetlabs/vmfloaty.git
synced 2026-01-26 13:28:42 -05:00
(maint) Add some useful ssh options
When sshing to transient VMs it's super useful to ignore host key checking. These options will make sure the host keys for the VMs are not being checked and that they are not getting added to your existing known hosts file.
This commit is contained in:
parent
c8525bd0f1
commit
1b60afdc0f
1 changed files with 2 additions and 1 deletions
|
|
@ -30,7 +30,8 @@ class Ssh
|
||||||
end
|
end
|
||||||
|
|
||||||
hostname = "#{response[host_os]["hostname"]}.#{response["domain"]}"
|
hostname = "#{response[host_os]["hostname"]}.#{response["domain"]}"
|
||||||
cmd = "#{ssh_path} #{user}@#{hostname}"
|
ssh_options= ["-oStrictHostKeyChecking=no", "-oUserKnownHostsFile=/dev/null"]
|
||||||
|
cmd = "#{ssh_path} #{ssh_options.join(' ')} #{user}@#{hostname}"
|
||||||
|
|
||||||
# TODO: Should this respect more ssh settings? Can it be configured
|
# TODO: Should this respect more ssh settings? Can it be configured
|
||||||
# by users ssh config and does this respect those settings?
|
# by users ssh config and does this respect those settings?
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue