2021-04-01 20:32:07 +00:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
#
|
|
|
|
# Generate a new SSH keypair.
|
|
|
|
# https://medium.com/risan/upgrade-your-ssh-key-to-ed25519-c6e8d60d3c54
|
|
|
|
|
2021-04-02 21:27:46 +00:00
|
|
|
set -e
|
|
|
|
|
2023-10-07 08:43:32 +00:00
|
|
|
ssh-keygen -o -a 100 -t ed25519 -f "$HOME/.ssh/id_ed25519" -C "$USER@$(hostname -s)"
|
|
|
|
cat "$HOME/.ssh/id_ed25519.pub"
|