OpenSSH: ssh-add / ssh-agent Command Set Maximum Lifetime In Seconds

Posted on in Categories , last updated April 6, 2012

I‘m using a Mac OS X and combination of ssh-agent+ssh-add to adds RSA or DSA identities to the authentication agent. ssh-agent provides me a secure way of storing the private key. However, I’d like to expire identities added to the agent within half an hour. How do I set lifetime of identities added to the agent under Unix / Linux / BSD / Apple OS X operating systems?

keychain: Set Up Secure Passwordless SSH Access For Backup Scripts

Posted on in Categories , , , , , , , , last updated December 18, 2016

We establish connections to remote systems without supplying a password. However, I do not want to store my password-less keys ( passphrase-free keys) on my servers. The ssh-agent, takes care of keys with a passphrase, which allowing me to have a ssh-agent process per system per login session easily. How do I dramatically reduces the number of times I have to punch my passphrase from once per new login session to once every time my local server is rebooted? How do I use keychain utility for all my backup scripts for secure passwordless login?