LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 01-14-2014, 09:37 PM   #1
ndhami23
LQ Newbie
 
Registered: May 2012
Location: Nepal
Distribution: Redhat
Posts: 4

Rep: Reputation: Disabled
how to permanently add an identity for ssh-agent


Dear frens,
i am using centos 6.2 and i have setup Public key auth for remote SSH but the problem is that every time i logout ssh-agent forgets my pass phrase and i have to reenter the exec /usr/bin/ssh-agent $SHELL , ssh-add command again.
Is there any way i can permanently store pass pharase for ssh-agent so that i don't have to reenter the pass phrase when i log in again?
Thank you in advance
 
Old 01-15-2014, 02:02 AM   #2
rhoekstra
Member
 
Registered: Aug 2004
Location: The Netherlands
Distribution: RedHat 2, 3, 4, 5, Fedora, SuSE, Gentoo
Posts: 372

Rep: Reputation: 42
If you are:
1) using gnome, and
2) the ssh passphrase is the same as your system password, and
3) your private key is in ~/.ssh/id_rsa (or ~/.ssh/id_dsa)

then it's my experience that the key gets loaded automagically

If any of the above is different, it might need some tweaking. If the passphrase differs from your system password, though, it will never work, because how secure is it to store the passphrase on the same system as the key itself, so you'll have to enter it at each logon.

Chances are that the ssh-agent (your first command) gets loaded anyway btw
 
Old 01-15-2014, 02:20 AM   #3
ndhami23
LQ Newbie
 
Registered: May 2012
Location: Nepal
Distribution: Redhat
Posts: 4

Original Poster
Rep: Reputation: Disabled
Hi rhoekstra,
The system passowrd and passphrase are same and private key in ~/.ssh/id_rsa (or ~/.ssh/id_dsa) ..but stil it doesnt works.can you please suggest any idea/tweaks?
Thank you again
 
  


Reply


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
ssh -i does not use my identity file? SibLiant Debian 2 11-05-2009 07:43 PM
[SOLVED] ssh-agent -> The agent has no identities. windstory Linux - Security 2 11-19-2008 07:45 PM
ssh-agent, ssh-add and ssh-keygen AND CVS raylpc Linux - General 2 11-19-2008 03:50 AM
ssh without identity files veeruk101 Linux - Networking 1 07-16-2007 10:04 PM
ssh-agent/ssh-add question mega Slackware 2 01-26-2005 04:09 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 08:39 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