aboutsummaryrefslogtreecommitdiff
path: root/ssh-agent-loadkey-menu
blob: c804d1d45b0a4e07710740c9c196e1ff850159b9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/bin/bash
#
# Load a key from a menu.
#

# Parameters
BASENAME="`basename $0`"
KEYS="$HOME/.ssh/keys"

# Check
if [ ! -d "$KEYS" ]; then
  echo "$BASENAME: folder not found: $KEYS"
  exit 1
fi

# Display menu with available keys
# Check the selected option
# Check if the selected option has a custom procedure (monkeysphere, keyringer, etc)
# Grab passphrase and load the key
#( cd $KEYS && find -name '*.pub' | grep -v decomissioned )

# Display the keys available in the agent
#echo "Current loaded keys:"
#echo ""
#ssh-add -L | cut -d ' ' -f 3 | sed -e 's/^/\t/'