2021年4月25日星期日

Cannot add the SSH public key to another GitHub account and be able to use it?

I am trying some simple code sample and I could push to my work's GitHub account if I want to, but since it is just some code sample, I thought I could just push to my personal GitHub account.

So I look at my ~/.ssh/id_ed25519.pub file, and add that content to my personal GitHub account's SSH key.

So I thought I should be able to push there, (after creating a new repo). But in Bash, it always asked me for user name and password.

How can this problem be solved? I think what the problem could be is, the email at the end of ~/.ssh/id_ed25519.pub is like susan@mycompany.com, but my GitHun account is like susan123@gmail.com (just a made up account name), but somebody told me the email address doesn't matter.

https://stackoverflow.com/questions/67260349/cannot-add-the-ssh-public-key-to-another-github-account-and-be-able-to-use-it April 26, 2021 at 11:07AM

没有评论:

发表评论