-
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
Comment for (public) key does not match GitHub URL pattern #123
Comments
I got a similar error:
I thought I had added a comment that supported the github regex for my public key when I created the key with: |
It has to do with deployment key mappings, which are described in https://github.com/webfactory/ssh-agent#using-multiple-keys and https://github.com/webfactory/ssh-agent#support-for-github-deploy-keys.
This means that key had a key comment, but it does not look like a GitHub repository URL. So, no special configuration is created to make sure this particular key is being used when cloning this particular repo. It's an informational message intended to help when setting up deployment key mappings.
That must be a glitch when we go through key comments. Maybe a trailing blank line that was not stripped correctly? Happy to accept patches :-). If that answers your question, please close the issue. Thanks! |
That worked for you, the key should be used for the repo you gave in the key comment.
That's the glitch, ignore it for now. |
I got the same issue: When I'm creating a ssh key via:
When I create the ssk key via |
There is also an issue with the regex pattern used |
@vitalytarasov there's an extra issue regarding other URLs than github.com, it's #128 |
@GreenG0blin you might be seeing #93 or a variant thereof. Not all key formats and/or keys created with various flags/settings actually contain the key comments, but I haven’t fully understood the issue myself either. |
Just wanted to add info from my struggles :) It seems very important (especially on Windows) that the URL in the SSH key comment matches the URL that you want to fetch from. I was using Yarn (NPM for that matter), and the URL started with |
I get this comment at the the end of the action:
Is this a bug? What does it mean?
The text was updated successfully, but these errors were encountered: