Host <%= @remote_ssh_host %>
Ciphers = <%= @ssh_ciphers %>
KeepAlive yes
ServerAliveInterval 60
<% if @ssh_reuse_established_connections == true -%>
ControlMaster auto
ControlPath ~/.ssh/sockets/%r@%g-%p
ControlPersist 600
<% end -%>
<% if @ssh_enable_compression == true -%>
Compression yes
<% end -%>
<% if @ssh_enable_compression == false -%>
Compression no
<% end -%>
<% if @ssh_stricthostkeychecking == false -%>
StrictHostKeyChecking no
<% end -%>

Host <%= @remote_ssh_host %>
Ciphers = <%= @ssh_ciphers %>
KeepAlive yes
ServerAliveInterval 60
<% if @ssh_reuse_established_connections == true -%>
ControlMaster auto
ControlPath ~/.ssh/sockets/%r@%h-%p
ControlPersist 600
<% end -%>
<% if @ssh_enable_compression == true -%>
Compression yes
<% end -%>
<% if @ssh_enable_compression == false -%>
Compression no
<% end -%>
<% if @ssh_stricthostkeychecking == false -%>
StrictHostKeyChecking no
<% end -%>

Fix host placeholder in control path definition
Fix host placeholder in control path definition

I could not find mention of %g anywhere and ssh does not like it
