1 | #!/usr/bin/env bash |
2 | # |
3 | # Manual setup |
4 | # |
5 | # Usage: |
6 | # soil/admin.sh <function name> |
7 | |
8 | set -o nounset |
9 | set -o pipefail |
10 | set -o errexit |
11 | |
12 | keygen() { |
13 | local comment=${1:-oils github} |
14 | local file=${2:-rsa_oils_github} |
15 | ssh-keygen -t rsa -b 4096 -C "$comment" -f $file |
16 | } |
17 | |
18 | |
19 | "$@" |