aboutsummaryrefslogtreecommitdiff
path: root/ssh-agent-loadkey
diff options
context:
space:
mode:
Diffstat (limited to 'ssh-agent-loadkey')
-rwxr-xr-xssh-agent-loadkey3
1 files changed, 3 insertions, 0 deletions
diff --git a/ssh-agent-loadkey b/ssh-agent-loadkey
index 610f10b..e02bd1f 100755
--- a/ssh-agent-loadkey
+++ b/ssh-agent-loadkey
@@ -11,6 +11,9 @@ HANDLE="$2"
# Check
if [ -z "$HANDLE" ]; then
echo "usage: $BASENAME <keytype> <handle>"
+ echo "available keys:"
+ echo ""
+ ( cd $HOME/.ssh/keys && find -name '*.pub' ) | grep -v decomissioned | sed -e 's/^/\t/'
exit 1
elif [ ! -e "$HOME/.ssh/keys/$TYPE/$HANDLE" ]; then
echo "$BASENAME: file not found: $HOME/.ssh/keys/$TYPE/$HANDLE"