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:

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:
- “{{ lookup(‘file’, ‘~/.ssh/’) }}”

Is the key loaded into SSH via “$ cat ~/.ssh/ | 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/ 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

This topic was automatically closed after 42 days. New replies are no longer allowed.