Hello list I am attempting to manage my key logins with ssh-agent. However EVERY time I try to ssh I have to go through the same exact routing and it's getting a little old... [bluethundr at LCENT01:~]#ssh sum3 Enter passphrase for key '/home/bluethundr/.ssh/id_rsa': [bluethundr at LCENT01:~]#exec ssh-agent bash [bluethundr at LCENT01:~]#ssh-add Enter passphrase for /home/bluethundr/.ssh/id_rsa: Identity added: /home/bluethundr/.ssh/id_rsa (/home/bluethundr/.ssh/id_rsa) [bluethundr at LCENT01:~]#ssh sum3 Last login: Sun Nov 28 14:32:34 2010 from localhost.localdomain ######################################################### # SUMMITNJHOME.COM # # TITLE: LCENT03 BOX # # LOCATION: SUMMIT BASEMENT # # # ######################################################### [bluethundr at LCENT03:~]# Does anyone have any suggestions to make ssh-agent hold these values a bit more persistently? thanks!! -- Here's my RSA Public key: gpg --keyserver pgp.mit.edu --recv-keys B6D6EAC3
On Sun, 2010-11-28 at 16:35 -0500, bluethundr wrote:> Hello list > > I am attempting to manage my key logins with ssh-agent. However EVERY > time I try to ssh I have to go through the same exact routing and it's > getting a little old... > > [bluethundr at LCENT01:~]#ssh sum3 > Enter passphrase for key '/home/bluethundr/.ssh/id_rsa': > > [bluethundr at LCENT01:~]#exec ssh-agent bash > [bluethundr at LCENT01:~]#ssh-add > Enter passphrase for /home/bluethundr/.ssh/id_rsa: > Identity added: /home/bluethundr/.ssh/id_rsa (/home/bluethundr/.ssh/id_rsa) > [bluethundr at LCENT01:~]#ssh sum3 > Last login: Sun Nov 28 14:32:34 2010 from localhost.localdomain > ######################################################### > # SUMMITNJHOME.COM # > # TITLE: LCENT03 BOX # > # LOCATION: SUMMIT BASEMENT # > # # > ######################################################### > [bluethundr at LCENT03:~]# > > > Does anyone have any suggestions to make ssh-agent hold these values a > bit more persistently?I'm not sure if this will help, but I use the "keychain" package from RPMForge, and it takes most of the pain out of dealing with SSH keys.> > thanks!! > > >-- Ron Loftin reloftin at twcny.rr.com "God, root, what is difference ?" Piter from UserFriendly
From: bluethundr <bluethundr at gmail.com>> I am attempting to manage my key logins with ssh-agent. However EVERY > time I try to ssh I have to go through the same exact routing and it's > getting a little old... > Does anyone have any suggestions to make ssh-agent hold these values a > bit more persistently?I have this in my .bash_profile: AGENTRUNNING=`ps x | grep agent | grep -v grep` if [ -z "$AGENTRUNNING" ]; then /usr/bin/ssh-agent -s > $HOME/.ssh/agent-env.sh fi . $HOME/.ssh/agent-env.sh > /dev/null Then, I ssh-add once and that's it. JD