Question

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: https://www.digitalocean.com/docs/droplets/how-to/add-ssh-keys/to-account/.

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.

KFSys
Site Moderator
Site Moderator badge
October 19, 2020
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

Become a contributor for community

Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.

DigitalOcean Documentation

Full documentation for every DigitalOcean product.

Resources for startups and SMBs

The Wave has everything you need to know about building a business, from raising funding to marketing your product.

Get our newsletter

Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.

New accounts only. By submitting your email you agree to our Privacy Policy

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.