DEV Community

Ariel Mejia
Ariel Mejia

Posted on

Create and Register a new SSH on Github

It only requires three steps

1 Create a new SSH key

ssh-keygen -o -t rsa -C "email@example.com"
Enter fullscreen mode Exit fullscreen mode

2 Copy the content

Just check the output of the first command, it would add a path of the ssh key .pub file, now just copy the content:

pbcopy < /Users/<your-user-name>/.ssh/id_rsa.pub
Enter fullscreen mode Exit fullscreen mode

3 Register a new ssh key in GitHub

You can add the content of the key in the form of this URL

https://github.com/settings/ssh/new

it is done... happy coding!

Top comments (1)

Collapse
 
king_triton profile image
King Triton

Wow, this guide made setting up SSH keys so simple! I always thought it was a complex process, but breaking it down into just three steps really helped. The command examples were clear, and the direct link to GitHub was a nice touch. Thanks for making it so straightforward – I'm ready to dive into some secure coding now!