aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorGravatar Jonas Gunz <himself@jonasgunz.de> 2021-08-28 16:01:12 +0200
committerGravatar Jonas Gunz <himself@jonasgunz.de> 2021-08-28 16:01:12 +0200
commit7a9ebccc623cf96ff53f7945e0500061d9a71f89 (patch)
treee21e9160694367e1e30b3dce494124870a3dde9f /scripts
parentb63ea7695bf9f7dcf40185d043eba3d67974f7b3 (diff)
downloaddotfiles-7a9ebccc623cf96ff53f7945e0500061d9a71f89.tar.gz
ssh-host-keys
Diffstat (limited to 'scripts')
-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