Roots Discourse

Github vs Digital Ocean Public/Private Keys

I’m trying to set up a Trellis remote server on Digital Ocean, and I’m using Windows. Since I’m relatively new to SSH, I’m a little confused about the public and private keys.

I see where I need to set up keys for Github and SSH on here: https://roots.io/getting-started/docs/windows-basic-setup/

Do I use the same keys for my Digital Ocean droplet and my GitHub account or do I need two different sets of keys?

What keys do I include in my vault.yml file:
keys:
- “{{ lookup(‘file’, ‘~/.ssh/id_rsa.pub’) }}”
- https://github.com/tvanderzwaag.keys

Is the key loaded into SSH via “$ cat ~/.ssh/id_rsa.pub | clip.exe” the same as in the vault?

Thanks for your help.

It’s most common to use the same key.

What keys do I include in my vault.yml file:

Usually ~/.ssh/id_rsa.pub is the key on GitHub so what you have would be redundant (but still work fine). The GitHub URL is good to use if you have mutliple keys/computers.

1 Like