aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xscripts/ssh-host-keys.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/scripts/ssh-host-keys.sh b/scripts/ssh-host-keys.sh
new file mode 100755
index 0000000..e72431a
--- /dev/null
+++ b/scripts/ssh-host-keys.sh
@@ -0,0 +1,5 @@
+#!/bin/bash
+
+for host in "$@"; do
+ ssh-keyscan -t rsa "$host" 2> /dev/null | ssh-keygen -lf -
+done