SSH tunneling / port forwarding in OS X

Discussion in 'Mac Apps and Mac App Store' started by Am3822, Nov 5, 2006.

  1. Am3822 macrumors 6502

    Am3822

    Joined:
    Aug 16, 2006
    Location:
    Groningen, The Netherlands
    #1
    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.
     
  2. killmoms macrumors 68040

    killmoms

    Joined:
    Jun 23, 2003
    Location:
    Washington, DC
    #2
    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
     
  3. Am3822 thread starter macrumors 6502

    Am3822

    Joined:
    Aug 16, 2006
    Location:
    Groningen, The Netherlands

Share This Page