projects
/
webi-installers
/
.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
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
+++ b/
ssh-setpass/ssh-setpass.sh
@@ -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:-}"