vagrant/templates/commands/ssh_config/config.erb

21 lines
466 B
Plaintext

Host <%= host_key %>
HostName <%= ssh_host %>
User <%= ssh_user %>
Port <%= ssh_port %>
UserKnownHostsFile /dev/null
StrictHostKeyChecking no
PasswordAuthentication no
<% if private_key_path.include?(" ") -%>
IdentityFile "<%= private_key_path %>"
<% else -%>
IdentityFile <%= private_key_path %>
<% end -%>
IdentitiesOnly yes
LogLevel FATAL
<% if forward_agent -%>
ForwardAgent yes
<% end -%>
<% if forward_x11 -%>
ForwardX11 yes
<% end -%>