Should I use different SSH keys for connecting my home computer to the DO web server AND for connecting my DO web server to Github?

Hi all,

I installed an ssh keygen pair for connecting my home computer to the DO web server as per this tutorial:

Now, I want to connect my remote DO Droplet Ubuntu 20.04 OS to my Github repository and I also want to do this with ssh identification.

Do I need to install a new pair of ssh keys? If yes or no, where can I find the best information to get one of my DO Droplet directories linked to my Github repository?

Thank you!

Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Accepted Answer

Hi @katovonkatz,

Yes, you’ll need to generate an SSH key on your droplet and then add it to your repository.

First, you need to generate an SSH key on your droplet. It’s done the same way you generated the keys on your computer, with the ssh-keygen -t rsa command.

Once you have the keys, you should be able to follow this github article to add the key to your repository - GitHub Keys

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.