/sc_assets/441/logo.png

Mac OSX SSH Setup with Terminal

Last updated by Shayne M on May 21, 2013 20:25

Mac OSX is one of the easiest systems to use port forwarding on. Just open a  terminal window, and run the following:

Open Finder: Navigate to Applications -> Utilities and doible-click on Terminal.

Type in the following Command.

ssh -D 8181 -N -p 443 [email protected]

  • 8181: is the localport you want to open a socks proxy, to configure in your network applications.
  • 443: is the remote port that our server is listening on - available in the server list in our members area
  • username: is your VPNSecure members username
  • servername.vpnsecure.me: is the individual server you want to connect to - you can find a list in our members area under "servers"

Once you hit enter you will be prompted for your VPNSecure members area password, and connect the SSH tunnel. Then you just need to configure your browser or internet applications to use this tunnel, connecting to server 127.0.0.1 with the local port you chose above.

We have proxy setup guides available for common browsers here:

  • Chrome
  • Firefox
  • Opera
  • Safari uses the Mac OSX System Settings. Guide can be found here (To be added)

Sharing the SSH Tunnel with your network

With the above settings, a SOCKS5 proxy will open on port 8181 - but it only listens to requests coming from the same system that connected the SSH tunnel, on ip 127.0.0.1 . If you want other devices on your network to be able to use this SOCKS5 proxy you will need to modify the command so that the proxy listens on your local network IP as well as 127.0.0.1 .To do this, we just modify the -D 8181 switch, to either include the specific IP you want to bind to or use * for all interface. 

Listen on IP 10.0.0.2
ssh -D 10.0.0.2:8181 -N -p 443 [email protected]

Listen on all IPs / Network Interfacesssh -D *:8181 -N -p 443 [email protected]


VPNSecure Provides Secure VPN servers in over 45+ Countries

If you are a looking for a versatile easy to use VPN service, checkout Today