Score:0

Can I use the same SSH key in different places?

wf flag

I'm using WSL2 and I came across something related to SSH. I created an SSH key inside my Ubuntu and used it on GitHub, and then I needed to use an SSH key inside Google Cloud too; I tried to create another key with another name, but I had problem with "permission denied (publickey)" when I tried to connect to that server. I tried several things but nothing worked, so I used the same key I generated to use on GitHub and it worked! I would like to know if there is any problem in doing this? Should I generate a separate key for each thing? Is there something I'm doing wrong or missing?

Score:3
ar flag

You can use the same key for multiple remote systems. The private key is never shared with the service you log in to, so authenticating towards Github will not allow Github to impersonate you.

What you should not do is to use the same private key on multiple machines - if you loose one machine you'll have to replace everything. One private-public key pair per machine, so you only have to revoke access to one keypair.

I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.