Setup SSH key for git repository
genkey
sh
ssh-keygen -t ed25519 -C "your@email.com"Add key
Start the ssh agent
On linux
sh
eval `ssh-agent -s`On windows, go to services and start "OpenSSH Agent"
ssh-add
SSh add your private key
sh
ssh-add c:/Users/%USERNAME%/.ssh/<your_key>Env GIT_SSH
Set the GIT_SSH env varialbe to the ssh executable
Add pulbic key to server
the content of this file : c:/Users/%USERNAME%/.ssh/<your_key>.pub
Persistent
To make this persistent keep the default name path in answer (id_rsa) in defaut .ssh home folder