summaryrefslogtreecommitdiff
path: root/afssh
diff options
context:
space:
mode:
Diffstat (limited to 'afssh')
-rwxr-xr-xafssh5
1 files changed, 5 insertions, 0 deletions
diff --git a/afssh b/afssh
index 84b8545..609e61f 100755
--- a/afssh
+++ b/afssh
@@ -31,6 +31,11 @@ usage () {
exit
}
+if ! ssh-add -l > /dev/null; then
+ echo "no keys in your ssh-agent or ssh-agent not running" >&2
+ exit 1
+fi
+
declare -a agent_filter_args
if [ -x "${BASH_SOURCE%/*}/ssh-agent-filter" ]; then