gensshkey: print public key

This commit is contained in:
Rob Watson 2021-04-02 23:27:46 +02:00
parent c4d1e5983b
commit fc6141c543
1 changed files with 3 additions and 0 deletions

View File

@ -3,4 +3,7 @@
# Generate a new SSH keypair.
# https://medium.com/risan/upgrade-your-ssh-key-to-ed25519-c6e8d60d3c54
set -e
ssh-keygen -o -a 100 -t ed25519 -f ~/.ssh/id_ed25519 -C "rob@$(hostname -s)"
cat $HOME/.ssh/id_ed25519.pub