-
Notifications
You must be signed in to change notification settings - Fork 259
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Deployment key mapping: Key comments not written for some key types/formats? #93
Comments
Similar issue here. I'm using the same format for the comment, the command is something like |
I am also not sure where this is coming from, but others reported similar issues before… the key comment seems to be Can you load your keys into a With which command did you create keys, and which tool/platform/SSH implementation did you use? |
the command i used was
By the way, I was following another similar issue, where the poster said he switched from a PEM to an openssh key which got him further, so I tried to convert the PEM key to OpenSSH and it seemed to work
I had tried it previously but it didn't authenticate, but I think that might have been because I forgot to update the pub key after switching to OpenSSH. With GitHub this is several steps to test different options and very easy to make a mistake :( So maybe this problem can be solved by updating the documentation and removing the PEM mention and switch to OpenSSH? |
Seems to be not what we're expecting 🤔. |
From
ED25519-type keys seem to use this format by default:
Some (newer?) SSH suites support |
@mpdude Hello. I did try using the example you provided (
|
@cosminionut1996 it worked, see the second last line. (There must be a glitch causing the last line, ignore it.) |
I'm using an existing private Key to access another library via composer
Question: Can I also use -C with existing Keys, is this what you are talking about with KNOWN_HOSTS? My Output fails with:
It would be very nice, when you extend your documentation with working Examples on known Hosts with github Thank you !!! |
Not using
|
Thanks for all the work on this! New to GitHubCI but I think my CI failing is related to this. I'm using ed22519 keys and for one repo which is referencing one other private repo it works. When I have a repo that has to access 2+ repos it fails. I saw the ReadMe about adding comments to the keys to direct which url that key should be used for. Here's the overall setup for where the CI is failing for the third repo. GitHub Enterprise ([email protected]:my-enterprise)Private ReposFirstRepo ([email protected]:my-enterprise/FirstRepo.git)
SecondRepo ([email protected]:my-enterprise/SecondRepo.git)
ThirdRepo ([email protected]:my-enterprise/ThirdRepo.git)
in my
Is the issue with how I've set up the keys or how I've added the comments to my private keys? If I run |
Just a note for anyone using tools like 1Password - it seems that sometimes they'll strip the comment out when you import your private key. In my case, I was generating the key locally, then updating a 1password entry before using 1password to autofill the keys in GitHub. It turns out that upon being imported to 1Password, the private key was modified and shortened, removing the comment from the public key later generated from the private key. |
I'm facing this issue with both keys 👀
|
@eppisapiafsl it seems like Github is now stripping the comment from the key #228 |
I tried this action and in the output for the adding ssh-agent step, I see the following message for each key i added:
My comments are in the format
[email protected]:Myorg/myrepo.git
. I tried it with and without quotes.Why doesn't it work?
The text was updated successfully, but these errors were encountered: