Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

Am3822

macrumors 6502
Original poster
Aug 16, 2006
424
0
Groningen, The Netherlands
Hi folks,

Is there an easy way to configure (and save) ssh tunnels under OS X?

Let me explain -- under windows there was no native ssh implementation, but a common ssh client, PuTTY, could be configured to tunnel ports when connecting to a specific host. Obviously, it can be done with ssh. But what I'm after is a way to define it once and use it whenever I open an ssh session to that host.

Thanks in advance,
Am.
 
Yes, just save a Terminal with the appropriate ssh command to a file. To do this, open Terminal and go straight to File > Save As.... Give it a name, and then down at the bottom where is says "What to save:" make sure it's choosing "Main Window." Then, under "When opening this file:" change it to "Execute this command" and type in your ssh line complete with switches for your tunnel. Then anytime you want to open that tunnel, just double click on that .term file. :D
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.