diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2018-04-03 19:14:26 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2018-04-03 19:14:26 -0300 |
commit | 3e606f648800335787f48653e59731aabb755d7f (patch) | |
tree | b83558bf5590526ae37e39771b388b7c1e989524 /share/hydractl/ssh-finger | |
parent | 78fd7ea812a869dbf95d31db0dcaa0732348e840 (diff) | |
download | hydra-3e606f648800335787f48653e59731aabb755d7f.tar.gz hydra-3e606f648800335787f48653e59731aabb755d7f.tar.bz2 |
Simpler way to show ssh fingerprints
Diffstat (limited to 'share/hydractl/ssh-finger')
-rwxr-xr-x | share/hydractl/ssh-finger | 10 |
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 |