mirror of
https://github.com/puppetlabs/vmfloaty.git
synced 2026-01-25 21:28:40 -05:00
Merge b51d8aebae into 5fa65b6400
This commit is contained in:
commit
b6830fd797
1 changed files with 6 additions and 1 deletions
|
|
@ -30,7 +30,12 @@ class Ssh
|
|||
end
|
||||
|
||||
hostname = "#{response[host_os]["hostname"]}.#{response["domain"]}"
|
||||
cmd = "#{ssh_path} #{user}@#{hostname}"
|
||||
ssh_options= ["-oStrictHostKeyChecking=no", "-oUserKnownHostsFile=/dev/null"]
|
||||
if ENV['VMFLOATY_SSH_KEY']
|
||||
ssh_options << "-i #{ENV['VMFLOATY_SSH_KEY']}"
|
||||
end
|
||||
|
||||
cmd = "#{ssh_path} #{ssh_options.join(' ')} #{user}@#{hostname}"
|
||||
|
||||
# TODO: Should this respect more ssh settings? Can it be configured
|
||||
# by users ssh config and does this respect those settings?
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue