Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save hitaboy/d60efc4452129bc07ea72ddfc53e6332 to your computer and use it in GitHub Desktop.

Select an option

Save hitaboy/d60efc4452129bc07ea72ddfc53e6332 to your computer and use it in GitHub Desktop.
#How to remove your SSH public/private keys, recreate them, and then add your newly created public key to the servers and online services you use.
# Remove existing default SSH keys (Ed25519 and RSA)
rm -f ~/.ssh/id_ed25519* ~/.ssh/id_rsa*
# Generate a new Ed25519 SSH key (recommended)
ssh-keygen -t ed25519 -C "$(whoami)@$(hostname)-$(date -I)"
# Add key to SSH agent with macOS Keychain integration
ssh-add --apple-use-keychain ~/.ssh/id_ed25519
# Copy public key to clipboard
pbcopy < ~/.ssh/id_ed25519.pub
# Deploy public key to a remote server (replace 'user@host')
ssh-copy-id -i ~/.ssh/id_ed25519.pub user@host
@Herb-SergioNavarro
Copy link

It needs to be updated to support the Ed25519 algorithm or be decommissioned.

@hitaboy
Copy link
Author

hitaboy commented Oct 16, 2025

Fixed !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment