Re: Howto use port-forewarding to login into client with non-pulic IP?



Clemens Eisserer wrote:
Hello,

I would like to login on a client without a public IP using portforewarding.
I thought I could do this by having one server with public IP where
the client forewards its SSH port using:
ssh root@server -R 2222:server:22

This forwards the connection back to the server, not to the client. You probably want "ssh root@server -R 2222:client:22" or "ssh root@server -R 2222:localhost:22"

--
Darren Tucker (dtucker at zip.com.au)
GPG key 8FF4FA69 / D9A3 86E9 7EEE AF4B B2D4 37C9 C982 80C7 8FF4 FA69
Good judgement comes with experience. Unfortunately, the experience
usually comes from bad judgement.



Relevant Pages