How to SSH tunnel 2 times?

Advertisement

akari
Joined:
Posts:
3

How to SSH tunnel 2 times?

I know we can set the Host to setup tunnel on the Tunnel option, and then ssh to the host.
so the flow will be : 125.252.xx.xx --> 192.168.30.4
But there is another server need ssh from 192.168.30.4
The flow will be : 125.252.xx.xx --> 192.168.30.4 --> 10.168.41.52
Is it possible I can connect to 10.168.41.52 using winscp?

Sorry for bad english..

Reply with quote

Advertisement

akari
Joined:
Posts:
3

Re: How to SSH tunnel 2 times?

martin wrote:

You have to create one of the tunnels using PuTTY (or Plink).
See https://winscp.net/eng/docs/guide_tunnel
Or use Plink as a proxy command in WinSCP.

Is there any example how to use Plink as a proxy command?
125.252.xx.xx --> 192.168.30.4 --> 10.168.41.52
so it will be
125.252.xx.xx set in the proxy tab and 192.168.30.4 set into the tunnel tab?

Try to put D:\putty\plink.exe -ssh username@125.252.xx.xx -pw password -P 22 in the local proxy command but fail.

Reply with quote

Advertisement

You can post new topics in this forum