Working with Git will make it more efficient using SSH keys, since you do not have to constantly enter in your username and password or personal access token. Make sure your Git site URL is set to use the SSH URL for your repo.
- Open Terminal
- Create the .ssh directory, if you don't already have
- Create and/or edit the ssh config file (use your favourite editor)
- Copy the config info below and paste it into the ssh config file
Host github.com Hostname github.com User git IdentityFile /opt/ssh/[id_rsa]
- Save and exit the config file
Add new comment