dotfiles/dot_bin/executable_ssh-def-keygen

16 lines
234 B
Bash

#! /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"