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