ssh-keys/generate-new-key.sh

7 lines
200 B
Bash
Raw Permalink Normal View History

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