Skip to content

Instantly share code, notes, and snippets.

@juanlu-sanz
Created August 7, 2022 18:20
Show Gist options
  • Save juanlu-sanz/37677f5f8e9ebda573d324d58764e772 to your computer and use it in GitHub Desktop.
Save juanlu-sanz/37677f5f8e9ebda573d324d58764e772 to your computer and use it in GitHub Desktop.
Simple way to create a brand new SSH key and upload it to a server for authentication
#Draft, please change key name, email and server to copy to.
ssh-keygen -o -a 100 -t ed25519 -f ~/.ssh/myBrandNewKey -C myemail@mydomain.com
ssh-copy-id -i ~/.ssh/myBrandNewKey myServerUser@myServerDomain
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment