LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Security (https://www.linuxquestions.org/questions/linux-security-4/)
-   -   ssh-add without timeout? (https://www.linuxquestions.org/questions/linux-security-4/ssh-add-without-timeout-566000/)

[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?):
Quote:

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:
Quote:

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 10:19 PM.