-   Linux - Security (
-   -   ssh-add without timeout? (

[KIA]aze 07-02-2007 06:33 AM

ssh-add without timeout?
I followed this tutorial to set up public key authentication so that I can use ssh in a script called by crontab.

The tutorial says to add this to the .bashrc file (or .bash_profile?):

alias keyon="ssh-add -t 10800"
Which gives a timeout of about 3 hours.

However, I would like to know if it's possible to completely remove the timeout and if not, what the maximum time limit is for ssh-add.

What happens if I just put in:

alias keyon="ssh-add"

Will it memorize the keys until I reboot or type keyoff?

DotHQ 07-03-2007 02:50 PM

Yes. That is exactly what it will do.

All times are GMT -5. The time now is 03:40 AM.