Skip to content

Instantly share code, notes, and snippets.

@mehmetkurt
Last active February 8, 2020 00:41
Show Gist options
  • Save mehmetkurt/628cd72d742fc7baab5d082e6807cddf to your computer and use it in GitHub Desktop.
Save mehmetkurt/628cd72d742fc7baab5d082e6807cddf to your computer and use it in GitHub Desktop.
Solved : [email protected]: Permission denied (publickey).

Solved : [email protected]: Permission denied (publickey).

I found this after searching alot. It will work perfectly fine for me.

  1. Go to "Git Bash" just like cmd. Right click and "Run as Administrator".
  2. Type ssh-keygen
  3. Press enter.
  4. It will ask you to save the key to the specific directory.
  5. Press enter. It will prompt you to type password or enter without password.
  6. The public key will be created to the specific directory.
  7. Now go to the directory and open .ssh folder.
  8. You'll see a file id_rsa.pub. Open it on notepad. Copy all text from it.
  9. Go to https://gitlab.com/profile/keys .
  10. Paste here in the "key" textfield.
  11. Now click on the "Title" below. It will automatically get filled.
  12. Then click "Add key".

Now give it a shot and it will work for sure.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment