GIT_SSH_COMMAND + Deploy Key = Permission Denied? #26692
-
I am experimenting a little to familiarise myself with Deploy Keys and am not able to figure out why the following is not working:
Why does this not work? Why the permission error? Grateful for any thoughts and ideas what the issue is here. Thanks. |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments
-
andreas-github:
|
Beta Was this translation helpful? Give feedback.
-
airtower-luna:
Ok, changed it to Additional detail about this test:
|
Beta Was this translation helpful? Give feedback.
-
I notice you don’t However, before you continue, I see a number of things there that practically yell really bad idea.
Get GitHub's SSH key fingerprints - GitHub Docs, retrieve the keys, verify, and add them to the right user’s known hosts file, and use that file when connecting. Don’t clone as root, clone as a regular user. If your tool really needs to run (or install) as root you can still do that after. Good luck! 🙂 |
Beta Was this translation helpful? Give feedback.
-
Thanks for your help @airtower-luna It was indeed the missing Regarding For what it’s worth, here is the “working” shell snippet (w/o the bad parts :slight_smile:
|
Beta Was this translation helpful? Give feedback.
I notice you don’t
export
theGIT_SSH_COMMAND
variable, so it’s not actually available to the subsequentgit
command. That’s probably the issue.However, before you continue, I see a number of things there that practically yell really bad idea.⚠️