# change the origin remote from https to ssh
git remote set-url origin git@github.com:<Username>/<Project>.git
# CREATE SSH
1. ssh-keygen
2. cd ~/.ssh
3. cat id_rsa.pub
4. copy key
# CONNECT TO GITHUB
1. settings
2. SSH and GPG keys
3. SSH keys -> new SSH key
1. ssh-keygen -o -t rsa -C "your_email@example.com"
2. Press return for each option
3. cat ~/.ssh/id_rsa.pub
4. Copy the entire cat's output on "Settings - SSH and GPG keys - New SSH key" on GitHub
ssh-keygen -t ed25519 -C "your_email@example.com"
$ clip < ~/.ssh/rsa.pub
$ clip < ~/.ssh/id_ed25519.pub
# Copies the contents of the id_ed25519.pub file to your clipboard
ssh-keygen -b 2048 -t rsa // generate the keys
ssh-agent -s // start the aggent
ssh-add ~/.ssh/id_rsa // add private key to ssh
ssh-keygen -t rsa -C "@gmail.com"
> Enter a file in which to save the key (/c/Users/you/.ssh/id_rsa):[Press enter]
> Generating public/private rsa key pair.
Host *
AddKeysToAgent yes
UseKeychain yes
IdentityFile ~/.ssh/id_rsa