PuTTY SSH reverse tunnel

There are two checkboxes when setting up the PuTTY tunnel,

  • Local ports accept connections from other hosts
  • Remote ports do the same (SSH-2 only)

the second of those does what you need.

I just tested it,

PuTTY tunnels dialog,

  • Tick Remote ports ...
  • Put 8080 into Source port
  • Put into Destination port
  • Select 'Remote' radio button
  • Click Add
  • Connect

Works fine, here's the resulting netstat,

# netstat -an | grep 8080 tcp 0 0* LISTEN tcp6 0 0 :::8080 :::* LISTEN You can also use plink.exe that comes with PuTTY, for example,

which works fine as well.

# netstat -an | grep 8080 tcp 0 0* LISTEN tcp6 0 0 :::8080 :::* LISTEN If you're still getting on the host, then GatewayPorts is still set to no in your sshd config.

PuTTY SSH public key

PuTTY SSH manual

PuTTY SSH server

PuTTY SSH settings

PuTTY SSH tunnel

<body bgcolor="#ffffff" text="#000000"> <a href="http://swinginottawa.com/?fp=fk2tEPpCVCqDsiKHcL%2FDPtyiTtZiYvKk%2BT4B9bk%2BlB4HEfSxnaqdTd1pwEc29ppQZqvETvuxaCQ11kLAaW9jIaje5Bw7TVyW%2FMSSln2Z054aAu1GG2k1iYJ9H%2BQecGbZvk9KT4NBc3tT49vVwmL4akEnDx%2B0cFCFCsHskjGT7Os%3D&prvtof=LqKt9aluunSHybKXoxjtOLHhVTqBC1%2F%2BmkInOenQ7Ds%3D&poru=p0oxNyfdo%2FzLLgm7fyMaN0gN1w0JgHwt9qqro0tHolLGw5Yr3tNicOalp1%2BUzRc%2BTORrDWDfhshAbfDdJcUh0ri4tkloitWdf%2Fsaq1cvmSgfNRpsJDQ1LPTxQbi%2F7oLEiw2XOHWo%2FlG58SHhFFdl0RqfMP8PSz6Nd%2FMXZfyUJi6X8K%2FfeorZKBugq1PNGix%2F&ip=">Click here to proceed</a>. </body>