diff options
-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 |