#
# Autossh endpoint generated by Puppet.   Direct changes will be lost, you have been warned.
# connection for <%= @host -%> forwarding port <%= @port %> and any monitor ports (if enabled).
#
<% if monitor_port != 0 -%>
command="echo Interactive Access Denied",no-agent-forwarding,no-X11-forwarding,permitopen="localhost:<%= @port -%>",permitopen:"<%= @monitor_port -%>",permitopen="<%= @monitor_port.to_i + 1 -%>" <%= @pubkey %>
<% end -%>
<% if monitor_port == 0 -%>
command="echo Interactive Access Denied",no-agent-forwarding,no-X11-forwarding,permitopen="localhost:<%= @port -%>" <%= @pubkey %>
<% end -%>

#
# Autossh endpoint generated by Puppet.   Direct changes will be lost, you have been warned.
# connection for <%= @host -%> forwarding port <%= @port %> and any monitor ports (if enabled).
#
<% if @monitor_port != '0' -%>
command="echo Interactive Access Denied",no-agent-forwarding,no-X11-forwarding,permitopen="localhost:<%= @port -%>",permitopen:"<%= @monitor_port -%>",permitopen="<%= @monitor_port.to_i + 1 -%>" <%= @pubkey %>
<% end -%>
<% if @monitor_port == '0' -%>
command="echo Interactive Access Denied",no-agent-forwarding,no-X11-forwarding,permitopen="localhost:<%= @port -%>" <%= @pubkey %>
<% end -%>

Fix having no monitor port
Fix having no monitor port
