I set up a server at home, and I never got around to anything else than remote SSH access (basically port forward port 22).

Now I'm outside of home, and I realised how much I actually need to use the server physically, which is why I want to port forward externally (through SSH), so I can set up a remote connection (because some programs only have GUI).

Assuming I only have an SSH connection open, how would I go to and port forward other ports? Basically set up my own Macbook to handle the connection through SSH, so I can use my Macbook like I was at home.

  • I used to work like that. It was not pratical. I ended up setting up the modem/router of the provider in bridge modem and setup my own Linux box with strongswan giving me a VPN to the outside. – Rui F Ribeiro Feb 24 '17 at 9:08

Ah, I figured it out.

ssh -D 8080 -C -N USERNAME@home.ip

And then set up the Macbook to use a SOCKS proxy on port 8080.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.