Ethical Hacking Learn to find vulnerabilities before the bad guys do! Gain real world hands on hacking experience in our state of the art hacking lab. Course designed and taught by expert instructors with years of penetration testing experience. 12 student maximum in every class. Certification attempt included in every package. | Computer Forensics Training at InfoSec Institute Gain the in-demand skills of a certified computer examiner, learn to recover trace data left behind by fraud, theft, and cybercrime perpetrators. Discover the source of computer crime and abuse at your organization so that it never happens again. All of our class sizes are guaranteed to be 12 students or less to facilitate one-on-one interaction with one of our expert instructors. |

| Subject: | Re: Defering passphrase entry with ssh-add |
|---|---|
| Date: | Tue, 20 Nov 2007 19:01:21 +0000 |
I also use this a lot and would be interested in a solution to this.
To my knowledge it requires the password when invoked initially to decrypt the private key.
There seems to be every option except that one you've asked for. Alternatives could be to lock and unlock your agent to prevent unattended logins, but this is nearly as much hassle as not using the agent at all and manually entering the password to decrypt the private on every use...
Or to require a lifetime on the key loaded, but again, not 100% convenient.
If anyone knows an answer to this, I'd also like to change my agent behaviour to this... I suspect that the software does not support such a feature at this time...
As a workaround, you could function off all ssh calls to invoke the agent, check if it has your key and if not, then source it, asking you for the password one time, and then retaining it and using it for every future connection. Now I think about this, it's very easy to do in Bash....
-h
Hari Sekhon
I've done created a Bash solution for now,
alias ssh="ssh-add -l >/dev/null; if [ \$? = 1 ]; then ssh-add; fi; ssh"
Chris
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Restricted (ksh -r) shell and SSH on AIX5.1, Rob Sherry |
|---|---|
| Next by Date: | Re: Closing a process when SSH is interrupted?, Glemboski, Mark A |
| Previous by Thread: | Re: Defering passphrase entry with ssh-add, Hari Sekhon |
| Next by Thread: | Re: Defering passphrase entry with ssh-add, Hari Sekhon |
| Indexes: | [Date] [Thread] [Top] [All Lists] |