aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2018-04-03 19:14:26 -0300
committerSilvio Rhatto <rhatto@riseup.net>2018-04-03 19:14:26 -0300
commit3e606f648800335787f48653e59731aabb755d7f (patch)
treeb83558bf5590526ae37e39771b388b7c1e989524
parent78fd7ea812a869dbf95d31db0dcaa0732348e840 (diff)
downloadhydra-3e606f648800335787f48653e59731aabb755d7f.tar.gz
hydra-3e606f648800335787f48653e59731aabb755d7f.tar.bz2
Simpler way to show ssh fingerprints
-rwxr-xr-xshare/hydractl/ssh-finger10
1 files changed, 7 insertions, 3 deletions
diff --git a/share/hydractl/ssh-finger b/share/hydractl/ssh-finger
index fac694b..0459fdd 100755
--- a/share/hydractl/ssh-finger
+++ b/share/hydractl/ssh-finger
@@ -32,7 +32,11 @@ if [ ! -z "$HOST" ]; then
ssh-keygen -l -f ~/.ssh/known_hosts -F $HOST
elif [ -d "/etc/ssh" ]; then
- for i in /etc/ssh/*.pub; do
- ssh-keygen -l -f $i
- done
+ # Classic
+ #for i in /etc/ssh/*.pub; do
+ # ssh-keygen -l -f $i
+ #done
+
+ # Simpler
+ ls /etc/ssh/ssh_host_*.pub | xargs -n 1 ssh-keygen -l -f
fi