2023-08-13 23:21:19 +00:00
|
|
|
THISHOST=$(hostname)
|
2023-11-18 14:44:42 +00:00
|
|
|
DISTRO=$(cat /etc/*-release | grep -w ID | cut -d= -f2 | tr -d '"')
|
2023-08-13 23:21:19 +00:00
|
|
|
|
2023-11-18 14:44:42 +00:00
|
|
|
ssh-keygen -t ed25519 -C "martin@caliban.io"
|
2023-08-13 23:21:19 +00:00
|
|
|
|
2023-11-18 14:44:42 +00:00
|
|
|
cp $HOME/.ssh/id_ed25519.pub ./${THISHOST}.${DISTRO}.id_ed25519.pub
|