From 41c73361b3b7bd129cac249b7cb59c43a303733b Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Sat, 9 Mar 2019 15:43:07 -0300 Subject: Display available keys att ssh-agent-loadkey --- ssh-agent-loadkey | 3 +++ 1 file changed, 3 insertions(+) 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 " + 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" -- cgit v1.2.3