Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 12609 - Keychain - New startup script
Summary: Keychain - New startup script
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Keychain Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-12-23 04:01 UTC by Luke Holden
Modified: 2004-07-24 19:49 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Luke Holden 2002-12-23 04:01:22 UTC
Although the script on the keychain web page works... I've come up with a new script 
that has some advantages over the old one. 
 
New features: 
* Supports x11-ssh-askpass (need to emerge x11-ssh-askpass first) 
* Asks for a password for any new keys added since keychain was last run. 
* Runs even if no keys are availible (good for system wide use, like /etc/profile) 
 
The script otherwise acts the same. 
------ snip ------ 
#!/bin/bash 
KEYCHAIN=/usr/bin/keychain 
KEYS="" 
 
# Search for SSH keys 
for file in $HOME/.ssh/id_*; do 
  # Dont include public keys 
  if [ `echo "$file" | grep -v "\.pub"` ]; then 
    KEYS="$KEYS $file" 
  fi 
done 
 
# Used when a term is not availible.  
# (when used from the console/xterm/etc it acts normally ) 
SSH_ASKPASS="/usr/bin/x11-ssh-askpass" 
 
$KEYCHAIN $KEYS 
. ~/.keychain/${HOSTNAME}-sh 
------ snip ------
Comment 1 Aron Griffis (RETIRED) gentoo-dev 2004-07-24 19:49:33 UTC
Whoah!  This bug is old and moldy and most importantly, no longer applies!