Ssh Socks Proxy
Procedure: Set up ssh as a SOCKS proxy over 443
"A simple VPN." - lee
Prerequisites
The remote server's sshd needs to accept ssh on 443 if you can only get 443 outbound.
Edit /etc/ssh/sshd_config
to have the line Port 443
after any similar lines and service sshd restart
Server and client setup
ssh -p443 -D localhost:443 <username>@<remote-host>
- macos:
sudo ssh -i <path-to-ssh-key> -D localhost:443 <username>@<remote-host>
- make sure to use the path to the private key, not the public key!!
- macos:
- Configure your local system to send network traffic over a SOCKS proxy at localhost:443
- macos:
System Preferences->Network
- unlock administrative access (press the lock)
- select 'wifi' for wifi
- choose
Advanced...->Proxies
- Add
localhost
:443
to theSOCKS Proxy
, chooseok
- In the 'network' window choose
save
- Check your IP at google.com by typing "whats my IP"
- macos: