refactor: finish moving ssh-* scripts to own installers
[webi-installers/.git] / ssh-setpass / ssh-setpass.sh
diff --git a/ssh-setpass/ssh-setpass.sh b/ssh-setpass/ssh-setpass.sh
new file mode 100644 (file)
index 0000000..c4a8022
--- /dev/null
@@ -0,0 +1,10 @@
+#!/bin/bash
+set -e
+set -u
+
+function main() {
+    my_key="${1:-"${HOME}/.ssh/id_rsa"}"
+    ssh-keygen -p -f "${my_key}"
+}
+
+main "${1:-}"