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?

Posted October 19, 2020 140 views
GitUbuntu 20.04

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!

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.

×
1 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

Submit an Answer