diff options
Diffstat (limited to 'templates/autossh-tunnel.erb')
-rw-r--r-- | templates/autossh-tunnel.erb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/autossh-tunnel.erb b/templates/autossh-tunnel.erb index e89bc2a..5224197 100644 --- a/templates/autossh-tunnel.erb +++ b/templates/autossh-tunnel.erb @@ -26,7 +26,7 @@ SCRIPTNAME=/etc/init.d/$NAME # # AutoSSH configuration # -AUTOSSH_ARGS="-M <%= real_monitor_port %> -N -L <%= bind_address %>:<%= port %>:<%= host %>:<%= hostport %> <%= ssh_extra_options %> <%= real_remote_user %>@<%= remote_host %>" +AUTOSSH_ARGS="-M <%= real_monitor_port %> -N -L <%= bind_address %>:<%= port %>:<%= host %>:<%= hostport %> <%= ssh_extra_options %> -p <%= sshport %> <%= real_remote_user %>@<%= remote_host %>" <% if gatetime != 'absent' -%> AUTOSSH_GATETIME=<%= gatetime %> <% end -%> |