Results 1 to 2 of 2

Thread: Start SSH tunnel at boot

Hybrid View

  1. #1
    Join Date
    Jul 2006
    Location
    The Beach. NC
    Beans
    76
    Distro
    Ubuntu 14.04 Trusty Tahr

    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)?
    Intel S5000XVN/ 2x QC L5310/16G FBDIMM/2 X25v SSD R0 on P400/midtower EATX Mint16MATE
    Supermicro X10SLM+-F/Xeon E3-1230Lv3/16G/2x Mushkin 60G SSD R0 + 2x Samsung F1 R1 on P400/XenServer 6.5
    (VM) Ubuntu Server 14.04 LTS (LAMP server)

  2. #2
    Join Date
    Jul 2006
    Location
    The Beach. NC
    Beans
    76
    Distro
    Ubuntu 14.04 Trusty Tahr

    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.
    Intel S5000XVN/ 2x QC L5310/16G FBDIMM/2 X25v SSD R0 on P400/midtower EATX Mint16MATE
    Supermicro X10SLM+-F/Xeon E3-1230Lv3/16G/2x Mushkin 60G SSD R0 + 2x Samsung F1 R1 on P400/XenServer 6.5
    (VM) Ubuntu Server 14.04 LTS (LAMP server)

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
  •