ssh-keys/generate-ed25519-key.sh

7 lines
204 B
Bash
Raw Normal View History

THISHOST=$(hostname)
DISTRO=$(cat /etc/*-release | grep -w ID | cut -d= -f2 | tr -d '"')
ssh-keygen -t ed25519 -C "martin@caliban.io"
cp $HOME/.ssh/id_ed25519.pub ./${THISHOST}.${DISTRO}.id_ed25519.pub