Help setting up machine user #23257
-
I’m not clear on the instructions for how to create a machine user. I have a Github account with several private repos. I’d like to have two of them on a single server. I log in and manage as a single Unix user, dwayne. Up until I created the second application, I’d just use a deploy key. Since these can’t be duplicated, I see where it’s recommended to set up a machine user, for example, here: https://github.community/t5/How-to-use-Git-and-GitHub/Newbie-How-to-use-deploy-keys/m-p/23575# The repositories are owned by my Github account “futura.” I do have a separate Github account that I’m not using, “dpurper,” so I’ve set this account as a collaborator. I generated a key on the server and copied it as my SSH key for that user at https://github.com/settings/keys. So:
I still can’t figure out how to access the repositories from my server. I need to clone the second one, but …
Gives me:
What am I doing wrong? Thanks. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Oh, a bit more. I named my key to match the collaborator user, so:
And, then, in ~/.ssh/config:
I assume this is how I’m supposed to identify which key I want to use? |
Beta Was this translation helpful? Give feedback.
-
OK, solved it: https://help.github.com/en/github/authenticating-to-github/error-permission-denied-publickey “All connections, including those for remote URLs, must be made as the “git” user. If you try to connect with your GitHub username, it will fail” So, this works:
|
Beta Was this translation helpful? Give feedback.
OK, solved it:
https://help.github.com/en/github/authenticating-to-github/error-permission-denied-publickey
“All connections, including those for remote URLs, must be made as the “git” user. If you try to connect with your GitHub username, it will fail”
So, this works: