Home > Enterprise >  Connecting to GitHub with SSH to a project located not in my account
Connecting to GitHub with SSH to a project located not in my account

Time:11-11

I was trying to set ssh key in order NOT to type my username/Token every time I push updates. I used this manual to set ssh key and added ssh key to my GitHub account:

https://docs.github.com/en/authentication/connecting-to-github-with-ssh

But it still asks me about my username/Token. I figured out that my URL address is HTTPS rather than [email protected], so I was trying to follow the solution from here:

SSH Key - Still asking for password and passphrase

to replace URL using command:

git remote set-url origin [email protected]:USERNAME/REPOSITORY.git

However, because the project repository is locating not in my account (it is located in my company account where I authorized to commit changes), this does not work (cannot see repository). I am not sure how should I rewrite this command to make it work.

CodePudding user response:

I'm a bit confused by your confusion. Let's see if I can straighten myself out.

  • Related