Comments on: Access SSH server without direct connection from the internet https://blog.tinned-software.net/access-ssh-server-without-direct-connection-from-the-internet/ Tinned-Software Blog Thu, 30 Jun 2016 21:01:10 +0000 hourly 1 https://wordpress.org/?v=6.5.4 By: Gerhard https://blog.tinned-software.net/access-ssh-server-without-direct-connection-from-the-internet/#comment-26 Sat, 18 Apr 2015 14:12:09 +0000 http://blog.tinned-software.net/?p=1495#comment-26 In this article, the description shows the ProxyCommand as follows.

ProxyCommand ssh Server1 nc %h %p

This uses the netcat (nc) command, but actually plain ssh can be used to
achieve the same thing. SSH provides the “-W” option for this. The ProxyCommand
line then looks like this.

ProxyCommand ssh Server1 -W %h:%p
]]>