Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 10-09-2006, 02:45 PM   #1
LQ Newbie
Registered: Jul 2006
Location: Williamstown, VT, USA
Distribution: Gentoo
Posts: 12

Rep: Reputation: 0
ssh tunneling at boot without entering a passphrase

I'm using an ssh tunnel to securely connect to a remote samba server. The command looks something like this: "ssh -f -L 139:localhost:139 root@remotehost sleep 999999". I want that to come up at boot so that I can mount remote samba filesystems automatically at boot. I've got key based authentication working (and ssh-agent via keychain), but that still requires me to enter my passphrase after every reboot. Is there a way to save and restore keychain or ssh-agent? I suppose could use expect to automatically enter my passphrase for me, but that would require me to store the passphrase in plaintext somewhere.
Old 10-09-2006, 03:31 PM   #2
LQ Veteran
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,803
Blog Entries: 1

Rep: Reputation: 416Reputation: 416Reputation: 416Reputation: 416Reputation: 416
I would create a new set of keys, only without using a passphrase. There is a good explanation of how to do that here.

No, it isn't quite as secure as having a passphrase, but as you note, storing a passphrase for use isn't very secure either.
Old 10-09-2006, 03:32 PM   #3
LQ Guru
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that. Kernel, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700

Rep: Reputation: 62
What about setting it up as a trusted ssh connection and not require password or passphrase.



Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
tunneling thru ssh c9876543210 Linux - Networking 1 07-21-2005 12:45 AM
PAM auth error with empty passphrase over SSH angrybeaver Linux - Software 0 09-12-2004 10:35 PM
SSH Tunneling danny_beta_read Linux - Networking 0 06-10-2004 02:43 PM
Tunneling through SSH rech Slackware 1 11-28-2003 08:21 PM
ssh / ssh-key -- its always asking for passphrase BaerRS Linux - General 1 01-07-2003 06:21 PM > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 03:58 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration