Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Security
User Name
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.


  Search this Thread
Old 07-02-2007, 05:33 AM   #1
Registered: Jun 2006
Distribution: Debian, Ubuntu, Windows XP
Posts: 146

Rep: Reputation: 16
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?

Last edited by [KIA]aze; 07-02-2007 at 05:43 AM.
Old 07-03-2007, 01:50 PM   #2
Registered: Mar 2006
Location: Ohio, USA
Distribution: Red Hat, Fedora, Knoppix,
Posts: 548

Rep: Reputation: 33
Yes. That is exactly what it will do.


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

Similar Threads
Thread Thread Starter Forum Replies Last Post
ssh-agent, ssh-add and ssh-keygen AND CVS raylpc Linux - General 2 11-19-2008 02:50 AM
SSH Timeout Swakoo Linux - General 4 04-17-2006 03:48 AM
How do I add a timeout for the recv() cmd? dravya Programming 6 07-14-2004 09:28 AM
How do I add a timeout feature to this code? Dr Twox Programming 3 07-12-2004 04:19 AM
ssh timeout blackmercury Linux - General 1 06-02-2003 05:32 PM > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 01:32 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration