diff --git a/usr/local/bin/ssh-keygen-rsa b/usr/local/bin/ssh-keygen-rsa new file mode 100755 index 0000000..416c6e7 --- /dev/null +++ b/usr/local/bin/ssh-keygen-rsa @@ -0,0 +1,18 @@ +#!/usr/bin/env bash + +set -e; + +name=$1; +encryption=$2; + +if [[ -z "${name}" ]]; then + echo "Usage: ssh-keygen-rsa []" + exit 1; +fi + +if [[ -z ${encryption} ]]; then + encryption=3072; +fi + +openssl genrsa -out "${name}" "${encryption}" +ssh-keygen -y -f "${name}" > "${name}.pub" \ No newline at end of file