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

Try DigitalOcean for free

Click below to sign up and get $200 of credit to try our products over 60 days!

Sign up

card icon
Get our biweekly newsletter

Sign up for Infrastructure as a Newsletter.

Sign up
card icon
Hollie's Hub for Good

Working on improving health and education, reducing inequality, and spurring economic growth? We’d like to help.

Learn more
card icon
Become a contributor

You get paid; we donate to tech nonprofits.

Learn more
Welcome to the developer cloud

DigitalOcean makes it simple to launch in the cloud and scale up as you grow – whether you’re running one virtual machine or ten thousand.

Learn more ->
DigitalOcean Cloud Control Panel