summary refs log tree commit diff
path: root/snippets/sh/ssh-check-fingerprint.sh
diff options
context:
space:
mode:
Diffstat (limited to '')
-rwxr-xr-xsnippets/sh/ssh-check-fingerprint.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/snippets/sh/ssh-check-fingerprint.sh b/snippets/sh/ssh-check-fingerprint.sh
new file mode 100755
index 0000000..517fb5b
--- /dev/null
+++ b/snippets/sh/ssh-check-fingerprint.sh
@@ -0,0 +1,4 @@
+#!/bin/bash
+
+KEY=${1:-$HOME/.ssh/id_rsa.pub}
+ssh-keygen -lf "${KEY}"