Description
Steps to configure ssh key usage both on the remote origin and locally.
Steps
-
generate a ssh-key
-
ssh-keygen -o -a 256 -t ed25519
Other commands can work too, but this was sent by BM.
This should create an "id_rsa.pub" key by default. "id_rsa" is the private one.
-
-
add the key to your git profile
NOT on the repo, unless it's configured like that.
-
make sure you are using the ssh url, not the https url.
-
use "git remote set-url remote_name new_url"
HTTPS url example:
https://your.origin.net/drupal/fancy-repo
SSH url example:
git@your.origin.net:drupal/fancy-repo.git
-
-
make sure you even have access to the repo