2010-04-13 04:00:42 +00:00
|
|
|
Host <%= host_key %>
|
2011-01-29 01:50:43 +00:00
|
|
|
HostName <%= ssh_host %>
|
2010-04-13 04:00:42 +00:00
|
|
|
User <%= ssh_user %>
|
|
|
|
Port <%= ssh_port %>
|
2018-01-05 17:24:30 +00:00
|
|
|
<% if ! verify_host_key -%>
|
2010-04-13 04:00:42 +00:00
|
|
|
UserKnownHostsFile /dev/null
|
|
|
|
StrictHostKeyChecking no
|
2016-07-22 01:15:21 +00:00
|
|
|
<% end -%>
|
2010-06-06 01:52:12 +00:00
|
|
|
PasswordAuthentication no
|
2016-07-22 01:15:21 +00:00
|
|
|
<% if private_key_path -%>
|
2013-12-04 15:33:27 +00:00
|
|
|
<% private_key_path.each do |path| %>
|
2016-02-02 14:38:53 +00:00
|
|
|
<% if path.include?(" ") -%>
|
|
|
|
IdentityFile "<%= path %>"
|
|
|
|
<% else -%>
|
|
|
|
IdentityFile <%= path %>
|
|
|
|
<% end -%>
|
2013-07-20 03:57:10 +00:00
|
|
|
<% end -%>
|
2016-07-22 01:15:21 +00:00
|
|
|
<% end -%>
|
|
|
|
<% if keys_only -%>
|
2010-08-03 02:53:49 +00:00
|
|
|
IdentitiesOnly yes
|
2016-07-22 01:15:21 +00:00
|
|
|
<% end -%>
|
|
|
|
<% if log_level -%>
|
|
|
|
LogLevel <%= log_level %>
|
|
|
|
<% else -%>
|
2012-05-31 21:42:28 +00:00
|
|
|
LogLevel FATAL
|
2016-07-22 01:15:21 +00:00
|
|
|
<% end -%>
|
2011-07-06 07:36:05 +00:00
|
|
|
<% if forward_agent -%>
|
|
|
|
ForwardAgent yes
|
|
|
|
<% end -%>
|
|
|
|
<% if forward_x11 -%>
|
|
|
|
ForwardX11 yes
|
|
|
|
<% end -%>
|
2014-02-10 00:27:32 +00:00
|
|
|
<% if proxy_command -%>
|
|
|
|
ProxyCommand <%= proxy_command %>
|
|
|
|
<% end -%>
|