By katovonkatz
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!
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!
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
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
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
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.