Skip to content

Instantly share code, notes, and snippets.

@nixjs
Created May 7, 2024 07:15
Show Gist options
  • Save nixjs/9e0b4acf8e3d9409dcdc628fd986c252 to your computer and use it in GitHub Desktop.
Save nixjs/9e0b4acf8e3d9409dcdc628fd986c252 to your computer and use it in GitHub Desktop.

14

That's what worked for me:

Generate ssh key github

  1. The Remotes

$ git remote rm origin $ git remote add origin git@github.com:/.git If your SSH key is already in use on another github rep, you can generate a new one.

  1. Generating a new SSH key

$ ssh-keygen -t rsa -b 4096 -C "web@github.com" 3. Addition of the key at the SSH agent level

$ eval "$(ssh-agent -s)" $ ssh-add ~/.ssh/id_rsa_github 4. Add the new key to the Github repo.

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