dotfiles/dot_bin/executable_ssh-def-keygen

16 lines
234 B
Plaintext
Raw Normal View History

2022-08-28 23:04:41 -04:00
#! /bin/bash
# generate nicely formatted ssh key pair
if [ -z "$1" ]; then
echo "provide a name/path for the key pair"
exit 1
fi
ssh-keygen -C "$(whoami)@$(uname -n)-$(date -I)" \
-t ed25519 \
-N '' \
-f "$1"