2022-08-05 09:01:08 +00:00
|
|
|
THISHOST=$(hostname)
|
2023-11-18 14:44:42 +00:00
|
|
|
DISTRO=$(cat /etc/*-release | grep -w ID | cut -d= -f2 | tr -d '"')
|
2022-08-05 09:01:08 +00:00
|
|
|
|
2023-11-18 14:44:42 +00:00
|
|
|
ssh-keygen -t rsa -b 4096 -C "martin@caliban.io"
|
2022-08-05 09:01:08 +00:00
|
|
|
|
2023-11-18 14:44:42 +00:00
|
|
|
cp $HOME/.ssh/id_rsa.pub ./${THISHOST}.${DISTRO}.id_rsa.pub
|