Results 1 to 2 of 2

Thread: Start SSH tunnel at boot

  1. #1
    Join Date
    Jul 2006
    Location
    The Beach. NC
    Beans
    66
    Distro
    Ubuntu 10.04 Lucid Lynx

    Start SSH tunnel at boot

    In the office I use firefox for my work items and chrome for my personal items. I currently use proxy switchy with chrome to browse through an ssh tunnel to my home server. The chrome/switchy part works fine.

    In order to do this I have to open a command window every morning and execute:

    ssh -p8181 -D 9999 user@myhomeserver.com

    Then the command window asks my password and I am up and running. (my ssh server at home is running on port 8181)

    Is there a way to script this so I don't have to open the command window and enter my password every day (and also to prevent a visible command window from being open and visible)?
    Dell 1510/10.04_32b, Dell A90/10.10_32b, Zotac ION/A330/10.04_64b(HTPC)/64G SSD, MSI Wind A230 Nettop /FreeNAS7/2x Samsung F1 R1, Intel S5000XVN/ 2x QC L5310/8G FBDIMM/2 X25v R0/midtower EATX 10.04_x64, Supermicro 1U P4/10.04

  2. #2
    Join Date
    Jul 2006
    Location
    The Beach. NC
    Beans
    66
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Start SSH tunnel at boot

    I figured it out. Just for those searching for an answer I will add some info here.

    You have to add the RSA keys and import them to the endpoint. There is lots of documentation on the net about this. This makes it so the password isn't an issue. If your endpoint is ubuntu it is simple. My endpoint is FreeBSD so I had to jump through a few hoops but it worked out. I had to add a -N to the script to make it invisible. I then set it to fire on startup.
    Dell 1510/10.04_32b, Dell A90/10.10_32b, Zotac ION/A330/10.04_64b(HTPC)/64G SSD, MSI Wind A230 Nettop /FreeNAS7/2x Samsung F1 R1, Intel S5000XVN/ 2x QC L5310/8G FBDIMM/2 X25v R0/midtower EATX 10.04_x64, Supermicro 1U P4/10.04

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •