7 lines
204 B
Bash
Executable File
7 lines
204 B
Bash
Executable File
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
|