83

I've been using SSH Tunnel manager to easily set up and stop port tunneling over SSH to various servers at my company. That saved me the pain of opening up a new terminal window which will hang out there just for the sake of having a tunnel open.

This worked great (well , sort of) but SSH Tunnel Manager is a PowerPC application. With Lion, it is not supported any more.

What is a good replacement?

grg
  • 201,078
Boaz
  • 1,073

15 Answers15

59

Why not just use an SSH Tunnel via OSX's built in Terminal?...

Launch an SSH tunnel

To initiate your SSH tunnel, simply open Mac OSX Terminal.app and connect to your remote server via SSH with the following flags:

ssh -D 8080 -C -N username@example.com

This will launch our SSH tunnel on port 8080 and route all traffic (securely) through the server at example.com.

Browse the Web

Now, let’s start browsing the web using with your new SSH Tunnel (Chrome):

  • Open Google Chrome
  • Select ‘Chrome’ up the top left
  • Select ‘Preferences’
  • Select ‘Show advanced settings…’
  • Select ‘Change proxy settings…’
  • Select ‘SOCKS Proxy’
  • Enter ’127.0.0.1′
  • Enter port ’8080′
  • Save changes by selecting ‘OK’
klanomath
  • 66,391
  • 9
  • 130
  • 201
jtrag
  • 837
  • 14
    The question is specifically how to avoid doing all that, because it's annoying when you have to do it frequently. – Nick Matteo Oct 07 '15 at 15:38
  • 5
    Not really, since you can launch the terminal and run the command in the background, meaning you can just close the terminal. Can be set up as a script as well, instead of using a 3rd party app. – Efren Jun 06 '17 at 06:16
  • 1
    doing through the command line is ok when you have 1 tunnel to run. When people is looking for a manager, they are planing to run several tunnels at the same time. Which is better to have something that will have all your tunnels set up and indications whether they are open or not – Jose Areas Jan 24 '21 at 21:12
25

Try Secure Pipes: http://www.opoet.com It's free software and I'm looking to get more people using it.

jherran
  • 13,284
Secure Pipes
  • 251
  • 3
  • 2
25

SSHTunnel is a free, cocoa-based UI for SSH tunnel management. Works on 10.5 and up. It hasn't been updated in a while but the code that's there is reasonably stable. It's worked well for me in the past.

SSHTunnel

Ian C.
  • 45,969
17

Core Tunnel baked by Codinn is a tunnel manager that intuitive and easy to use:

  1. Support local, remote and dynamic port forwarding
  2. Compatible with OpenSSH
  3. Integrated with macOS Keychain
  4. Automatic reconnect
  5. Advanced config editor
  6. Status icon in menu bar
  7. Custom tags
  8. Importing and exporting

Core Tunnel - Overview Core Tunnel - Status Item Core Tunnel - Advanced Option Editor

Blaise
  • 166
Yang.Y
  • 319
  • Thanks for that trial. ps aux | grep ssh has nothing. How didi you start the tunnel? – hbrls Dec 30 '15 at 10:08
  • @hbrls Since SSH Tunnel is based on an excellent SSH library - libssh :) BTW, we also have open-sourced our core component SSHKitCore, which is based on libssh. – Yang.Y Dec 30 '15 at 12:35
  • 1
    Just bought this paid app and love it. 63 5-star reviews (counting all versions of the app) on the Apple Mac App Store. It gorgeous and intuitive, very Mac-specific solution, and a good way to manage tunnels so I don't have to keep track of scripts and ensure they run at boot, etc... And BTW, using this. I was able to create a tunnel to get around CyberDuck's frustration limitation (as recent as April 2017) in that it doesn't seem to support ~/.ssh/config ProxyCommand option. Technically speaking no app is required for that workaround but it sure makes it convenient! – clearlight Apr 23 '17 at 14:00
13

SSH Tunnel Manager is now in the Mac App Store! So, you can run it on Lion.

bmike
  • 235,889
Jesse
  • 147
6

I strongly recommend using sshuttle. It's very handy.

anki
  • 11,753
Bat
  • 161
  • The last commit was made 17 days ago! The project is transferred, check here: https://github.com/sshuttle/sshuttle @JonathanCross – Bat Oct 01 '19 at 02:11
6

On the terminal:

$ ssh -N -L SOURCE-PORT:127.0.0.1:DESTINATION-PORT USER@SERVER-IP

If you use ssh with a private key just type:

$ ssh -N -L SOURCE-PORT:127.0.0.1:DESTINATION-PORT -i KEYFILE USER@SERVER-IP

e.g.

$ ssh -N -L 8888:127.0.0.1:80 -i Documents/default.pem root@123.123.123.123 

After that, you can browse using the tunnel. e.g. on the browser: http://127.0.0.1:8888

overcomer
  • 169
5

I found Coccinellida, it works on Lion but it's new and a bit buggy : /

Ian C.
  • 45,969
3

You could also check out Meerkat.

jtbandes
  • 11,074
2

SSH Tunnel Manager is still alive and supported.

Sorry about the delay though, it is not compatible with El Capitan.

http://projects.tynsoe.org/stm/

2

I am using iSSH in Lion, which is a front-end application to the command line application “ssh”. It provides a quick and easy way to start an SSH connection to a remote computer.

Jason Salaz
  • 24,471
kukoo
  • 1,764
2

I have an open-source and secure solution with XBar.

Install XBar:

Install this ssh-tunnelling plugin:

You do need to edit the configuration for one time, but it's not that complicated:

Configure your ssh-tunnel config in your ~/.ssh/config (I use something like below):

 Host *
   AddKeysToAgent yes
   UseKeychain yes
   IdentityFile ~/.ssh/id_rsa
   IdentitiesOnly yes
 Host some_name
   Hostname host_ip_or_url_etc
   Port 22
   User your_username
   LocalForward 5999 127.0.0.1:5900

Don't forget to auto-start the ssh-agent:

$ ssh-add -K ~/.ssh/id_rsa
Dean
  • 131
  • 4
0

SSH Proxy on Mac App Store. It's simple, and it has the option to switch between Use Proxy for All Sites and Direct Internet Connection while SSH Tunneling is still connected. That way I don't have to clear the socks proxy from the browser whenever I need direct internet access.

Shahrokh Bah
  • 101
  • 1
0

iSSH can not remember my password. Coccinellida can save password. But it freezed my Mountain Lion sometimes ...

Shimo is good, but it IS commercial.

0

TunnelerX is simple and easy to use, focused on SSH SOCKS proxy. It doesn't exactly cover the requirement to manage several servers, as you can only add one server, although, it's usually enough for people looking to use an external box as proxy. It works fine under Mountain Lion.

yorch
  • 536