vagrant/templates/commands/ssh_config/config.erb

36 lines
758 B
Plaintext
Raw Normal View History

Host <%= host_key %>
HostName <%= ssh_host %>
User <%= ssh_user %>
Port <%= ssh_port %>
<% if ! verify_host_key || verify_host_key == :never -%>
UserKnownHostsFile /dev/null
StrictHostKeyChecking no
2016-07-22 01:15:21 +00:00
<% end -%>
PasswordAuthentication no
2016-07-22 01:15:21 +00:00
<% if private_key_path -%>
<% private_key_path.each do |path| %>
2016-02-02 14:38:53 +00:00
<% if path.include?(" ") -%>
IdentityFile "<%= path %>"
<% else -%>
IdentityFile <%= path %>
<% end -%>
<% end -%>
2016-07-22 01:15:21 +00:00
<% end -%>
<% if keys_only -%>
IdentitiesOnly yes
2016-07-22 01:15:21 +00:00
<% end -%>
<% if log_level -%>
LogLevel <%= log_level %>
<% else -%>
LogLevel FATAL
2016-07-22 01:15:21 +00:00
<% end -%>
<% if forward_agent -%>
ForwardAgent yes
<% end -%>
<% if forward_x11 -%>
ForwardX11 yes
<% end -%>
<% if proxy_command -%>
ProxyCommand <%= proxy_command %>
<% end -%>