[Cialug] enter passwords less

Matthew Nuzum newz at bearfruit.org
Mon Aug 20 15:17:44 CDT 2007


Goal is to unlock ssh key first time its used then not need to enter
ssh key's password again until you log out.

This works:

  if [[ ! `ssh-add -l|wc -l` > 0 ]]
  then
    ssh-add
  fi;

This doesn't:

  alias ssh='if [[ ! `ssh-add -l|wc -l` > 0 ]];then ssh-add; fi; ssh'

Instead I'm always asked to decrypt my ssh key.

Any tips?

See http://www.bearfruit.org/blog/2007/08/20/no-more-ssh-passowords for context.

-- 
Matthew Nuzum
newz2000 on freenode


More information about the Cialug mailing list