I can't connect to my own repository. Push origin
See original GitHub issueHello, I have the same problem as https://github.com/desktop/desktop/issues/2453 I can’t connect to my own repository I think the problem is because of shh keys.
When I first time installed git in 2016 I just launched github.desktop once. Was created key github_rsa. In 2017 I started work with git console and created a new key id_rsa and added it to the github account. it still working for now by the console.
But github desktop, i think, is trying to use my github_rsa which invalid: "Key is invalid. It must begin with ‘ssh-ed25519’, ‘ssh-rsa’, ‘ssh-dss’, ‘ecdsa-sha2-nistp256’, ‘ecdsa-sha2-nistp384’, or ‘ecdsa-sha2-nistp521’. Check that you’re copying the public half of the key " and i can’t add it to github profile.
Github.Desktop use password from github.com but console use another one. I think it is because of different ssh keys. How to “meet” working key with github desktop?
GitHub Desktop version: [1.0.13]
OS version: [Microsoft Windows 7 version 6.1.7601]
Steps to Reproduce
I have local repository (with .git folder)
- [push origin]
- [Error : “Authentication failed. You may not have permission to access the repository or the repository may have been archived. Open options and verify that you’re signed in with an account that has permission to access this repository.”]
Reproduces how often: [100%]
Logs
Developer’s tools console log:
"Executing fetch: git -c credential.helper= fetch --progress --prune origin "
and below:
install.ts:23 git -c credential.helper= fetch --progress --prune origin
exited with an unexpected code: 128.
git@github.com: Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
(The error was parsed as 2: Authentication failed. You may not have permission to access the repository or the repository may have been archived. Open options and verify that you’re signed in with an account that has permission to access this repository.)
%APPDATA%\GitHub Desktop\logs\*.desktop.production.log
I have not this log/ folder
Additional Information
git remote -v origin git@github.com:EugeneAndrievsky/repositoryName.git (fetch) origin git@github.com:EugeneAndrievsky/repositoryName.git (push)
Issue Analytics
- State:
- Created 6 years ago
- Comments:11 (2 by maintainers)
Top GitHub Comments
I get the same error. i change the git remote url from ssh to https :
@iAmWillShepherd
So, the problem was caused by using SSH. Thank you very much for your help and for such a quick response.