About Josh

Cranky Bit

Because sometimes technology makes you cranky

SSH Tunneling Tips

01 February 2019

With SSH, you can perform all sorts of magic to make your computers talk with each other. Here’s some tips to keep it straight.

Quick SOCKS proxy

ssh -N -D 1234 user@domain.com

This will make a -N non-interactive session that will -D dynamically handle port forwarding if you set it up.

A common way to handle this is to go into your browser’s proxy settings and turn it on with:

SOCKS Host: localhost
Port: 1234 (whatever you set it to)

If you can, enable “Proxy DNS when using SOCKS”.

You can now browse through your remote server’s connection, having access to all of its local network devices!