LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 10-10-2006, 09:08 PM   #1
lostinvietnam
LQ Newbie
 
Registered: Sep 2006
Posts: 12

Rep: Reputation: 0
ssh-agent and reboots


Hi.
I have added my private key to memory with:

$ssh-add /bin/bash
Enter passphrase for /user1/.ssh/id_rsa:

$ssh-add -l
1024 2a:1f:3d:84:3a:20:94:74:c9:ac etc, etc /user1/.ssh/id_rsa

Until now I use Pageant in putty for the same purpose and yes I need to reload my private key into Pageant every time I reboot my Windows machine. So my question is do I also need to add this to my boot scripts in Linux to have my private ley loaded each time or I only need to do this once and it's persistant?

Thanks!
 
Old 10-11-2006, 03:42 AM   #2
Lotharster
Member
 
Registered: Nov 2005
Posts: 144

Rep: Reputation: 18
The key is lost on reboot. When you want to automatically load it on startup, you should use a key without a passphrase, otherwise you would have to enter the passphrase everytime on bootup.
 
Old 10-11-2006, 06:16 AM   #3
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
do I also need to add this to my boot scripts in Linux to have my private ley loaded each time or I only need to do this once and it's persistant?
Add ssh-agent/ssh-add to your X or console session startup scripts, not the boot scripts.


When you want to automatically load it on startup, you should use a key without a passphrase
I'd like to emphasise passphraseless keys are for specific automated tasks like rsync backups and like that.
Do NOT use that for accessing remote systems from your personal account.
 
  


Reply



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
ssh-agent, ssh-add and ssh-keygen AND CVS raylpc Linux - General 2 11-19-2008 02:50 AM
ssh-agent/ssh-add question mega Slackware 2 01-26-2005 03:09 AM
ssh-agent alaios Linux - Security 5 05-02-2004 11:24 AM
ssh-agent podollb Linux - Networking 15 10-16-2003 12:51 AM
Getting ssh-agent to work.. Sonny Linux - Security 16 01-25-2002 06:57 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 01:33 PM.

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