Defering passphrase entry with ssh-add



Hello,

Is there any way to invoke ssh-add so that it defers asking for the passphase for my private key until the key is actually required. It seems like such an obvious option to have; it would permit me to have "eval $(ssh-agent) && ssh-add" in my .shrc, but not encumber me with having to enter a passhrase every time I ssh in, nor would it prevent unnattended logins. Am I missing something obvious in the way the system is meant to work? Am I just being lazy in not wanting to run ssh-add before the first time I use ssh?

This question applies to two versions,
OpenSSH_4.4p1, OpenSSL 0.9.8d 28 Sep 2006
OpenSSH_4.5p1 FreeBSD-20061110, OpenSSL 0.9.7e-p1 25 Oct 2004

--
Regards,

Chris



Relevant Pages

  • RE: TIPS FOR THE NEWCOMER
    ... using your old private key, so there's no point in keeping a backup. ... > security risk if I send this through e-mail as an attachment to the ssh ... > has been compromised it does not really matter since it is a public key ... > more words for the passphrase it gets harder to crack? ...
    (SSH)
  • Re: SSH Implemetation Question
    ... its a little difficult to document how SSH works on ... Give the private key a passphrase if you care about security! ... Start Pagent on the workstation, and add your private key to it. ... To demystify the configuration on the workstation in the -03 level IBM ...
    (bit.listserv.ibm-main)
  • Re: backups Re: Have I been sniffed?
    ... Wireless is worse because in order to sniff the wire, ... >> in ssh are still sent over the network, whereas, passphrases are kept ... as they are only used to decrypt the private key. ... Daily backups distributed to two servers, ...
    (Debian-User)
  • Re: setting up ssh keys to copy between desktop to freenas
    ... In public/private key authentication, the private key is kept by the client (the end initiating the ssh connection). ... The public key resides on the recipient "server". ... The .ssh directory, and the key, must be readable/writeable only by the owner of the key. ...
    (uk.comp.os.linux)
  • RE: passwordless SSH Rsync [Was : DiskLayout/PartitioningPractices]
    ... >> I do not want to have My Private key in all the servers. ... configured ssh clients), it is possible to ssh to multiple machines without ... each homer, bart, and lisa. ...
    (Fedora)