updated to clean up compiler issues with how functions were used from basis namespace;
[feisty_meow.git] / scripts / security / pick_credentials.sh
1 #!/bin/bash
2
3 # chooses the right certificate to use for logging in via ssh.
4
5 #hmmm: not the slightest bit general here currently.
6 #      what about having a main key variable and a sourceforge key variable?
7 #      better yet, an array of site patterns and keys for those sites.
8
9 keyfile="$HOME/.ssh/id_dsa_fred"
10
11 if [ ! -z "$(echo $* | grep -i sourceforge)" ]; then
12   keyfile="$HOME/.ssh/id_dsa_sourceforge"
13 fi
14