1

I know I made it work some months ago, but I don't remember how. I currently have no problem in pulling from public repos, but I can't seem to push. Also I can't pull from private repos. I have my id_rsa.pub in the .ssh directory and it's configured in settings. I'm 100% sure my rsa passphrase is right, as I tested it in git-bash. I have AIDE Premium Key installed.

When I try to push it asks for User and Password and I'm not sure what to put there.

For user I've tried: git@github.com (my username) (my mail I use for my commits)

For password I've tried: (github account password) (rsa passphrase)

I'd appreciate any suggestions.

Yuta73
  • 188
  • 10

1 Answers1

0

First, make sure your key is associated with your GitHub account:

 ssh -Tv git@github.com

You should see a welcome message.

Hi USERNAME! 
You've successfully authenticated, but GitHub does not provide shell access.

Second, don't forget you cannot clone/pull from private repository unless said private repositories are your own, or if you are a collaborator.

Similarly, you cannot push to a repository you don't own, or you are not a collaborator of.

VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250
  • Thanks for your response. My key is associated and I'm getting that same message. Also, I'm trying to push to my own repository. Do you know what should I use as Username and Password? – Yuta73 Oct 27 '22 at 18:03
  • @Yuta73 If your key authenticate you correctly, you should not need any username/password. Check your remote URL used when pushing. It should be `git@github.com:me/myRepo` (replace `me` by your GitHub account name, and `myRepo` by your repository name) – VonC Oct 27 '22 at 18:27
  • That didn't work. Have you made it work using Android-IDE app? Because it works in my PC, but I'm trying to make it work in this specific app. – Yuta73 Oct 28 '22 at 14:38
  • @Yuta73 I did not (and did not realize that AIDE was referencing Android-IDE). [I see it does support SSH URL though](https://www.android-ide.com/tutorial_git.html#section_create). – VonC Oct 28 '22 at 14:53