ssh-keys/generate-new-key.sh

6 lines
126 B
Bash
Raw Permalink Normal View History

THISHOST=$(hostname)
2023-08-13 23:14:42 +00:00
ssh-keygen -t rsa -b 4096 -C "martind2000@gmail.com"
cp $HOME/.ssh/id_rsa.pub ./${THISHOST}.id_rsa.pub