Brian Cain c9e5a22bff (#9062) Deprecate :paranoid in favor of :verify_host_key
As of `net-ssh` version 4.2.0, the key :paranoid has been deprecated in
favor of using :verify_host_key. This commit updates Vagrants ssh config
to use the new key, and deprecates the use of :paranoid.
2018-01-05 10:02:45 -08:00

36 lines
729 B
Plaintext

Host <%= host_key %>
HostName <%= ssh_host %>
User <%= ssh_user %>
Port <%= ssh_port %>
<% if ! verify_host_key -%>
UserKnownHostsFile /dev/null
StrictHostKeyChecking no
<% end -%>
PasswordAuthentication no
<% if private_key_path -%>
<% private_key_path.each do |path| %>
<% if path.include?(" ") -%>
IdentityFile "<%= path %>"
<% else -%>
IdentityFile <%= path %>
<% end -%>
<% end -%>
<% end -%>
<% if keys_only -%>
IdentitiesOnly yes
<% end -%>
<% if log_level -%>
LogLevel <%= log_level %>
<% else -%>
LogLevel FATAL
<% end -%>
<% if forward_agent -%>
ForwardAgent yes
<% end -%>
<% if forward_x11 -%>
ForwardX11 yes
<% end -%>
<% if proxy_command -%>
ProxyCommand <%= proxy_command %>
<% end -%>