# 1.0 Generate and Add SSH Keys to Github

---

<p class="callout info"><span style="color: rgb(45, 194, 107);">**<span style="color: rgb(35, 111, 161);">\*Any confusion on command syntax/structure can be clarified in</span> <span style="color: rgb(22, 145, 121);">[Legend](https://wiki.raspberrypiclub.org/books/how-to-refer-to-the-documentation/page/legend)</span>**</span></p>

1. <span style="color: rgb(0, 0, 0);">On device you want to ssh with, open a shell (e.g. PowerShell), enter the command below:</span>
    
    
    - <span style="color: rgb(0, 0, 0);">Just press Enter for the prompts</span>
    - <span style="color: rgb(0, 0, 0);">Make sure to note where the SSH keys are being stored</span>
        
        
        - <span style="color: rgb(0, 0, 0);">e.g.) C:\\Users\\\[USER\]\\.ssh\\</span>

```
ssh-keygen -t ed25519
```

<div align="left" dir="ltr" id="bkmrk--1"></div>2. <span style="color: rgb(0, 0, 0);">Navigate to the .ssh folder</span>
3. <span style="color: rgb(0, 0, 0);">Open the public key file (ends in .pub) in Notepad and copy just the key</span>
4. <span style="color: rgb(0, 0, 0);">Add the public SSH key on user’s<span style="color: rgb(22, 145, 121);"> [Github account](https://github.com/)</span></span>
    
    
    - <span style="color: rgb(0, 0, 0);">Click on Github Profile &gt; Settings &gt; SSH and GPG keys &gt; New SSH key</span>

<span style="color: rgb(0, 0, 0);">![](https://lh7-rt.googleusercontent.com/docsz/AD_4nXf2rPALmFykxmKx_W8CiCmvxzBSA4zkLqrjMFuyIO7_hh4ukcmkI0MwViL4zlmv5RqrIh3-JtsM4iJ0nGoVCrNdlu03I8m5R0jWQhgVKv-A0iYHiyGfNFU9hMSH1kylmbZeE7HGAw?key=A7w7-IIrPHtvIEAignbkTKHY)</span>

5. <span style="color: rgb(0, 0, 0);">Paste the public key into user’s Github profile</span>
    
    
    - <span style="color: rgb(0, 0, 0);">Title can be anything (should note what machine it belongs to)</span>
    - <span style="color: rgb(0, 0, 0);">Key type: Authentication Key</span>

<span style="color: rgb(0, 0, 0);">![](https://lh7-rt.googleusercontent.com/docsz/AD_4nXeQyhG1sXX_hvNsfUvNO3KqYSVyRV1YMuXJ3W9CZn3N_j0aAmczzgPxJvK5tP1L7YFq1tW8bzCXFW3oPLQauc37iE3dzpHJb4lbFsJgE5Nxd0Fgfy_RkOdJvlHwn1jGLPp-eU8ZBA?key=A7w7-IIrPHtvIEAignbkTKHY)</span>

<span style="color: rgb(0, 0, 0);">**You should now be able to SSH into the system that has your public keys with machines that hold the corresponding private key!**</span>

<span style="color: rgb(0, 0, 0);">*Last Updated: 2/22/2025  
Contributors: Lilian, Vivian* </span>