PuTTY configuration equivalent to OpenSSH ProxyCommand

I'm just trying to use PuTTY to connect SSH to my servers. These servers only allow incoming SSH from another specific server ("MySshProxyingServer" in the example below).

Using Linux is not a problem with the ssh -W command.

In PuTTY, I cannot find the options for creating such a connection.

Linux example ( ~/.ssh/config ):

 Host MyHostToConnectTo Hostname xx.xx.xx.xx User root Identityfile ~/.ssh/id_rsa ProxyCommand ssh MySshProxyServer -W %h:%p 

Does anyone know how to use such a configuration in PuTTY?

+22
putty ssh proxy openssh portforwarding tunneling
source share
1 answer

The equivalent in PuTTY is the โ€œlocal proxy commandโ€. You can use plink.exe with the -nc switch instead of ssh with the -W switch:

PuTTY local proxy

"Local proxy command":

 plink.exe % user@ %proxyhost -P %proxyport -nc %host:%port 

An alternative is to first open the tunnel using MySshProxyServer using another PuTTY (or Plink) instance.

See for example:

+23
source share

All Articles