Create a file called
SSH will look for the user’s
~/.ssh/config file. I have mine setup as:
Host gitserv Hostname remote.server.com IdentityFile ~/.ssh/id_rsa.github IdentitiesOnly yes # see NOTES below Above can be used for both cloning/pushing git repository and logging in to the server.
gitserv : hostname which is “email@example.com” in below example
git clone firstname.lastname@example.org:orgname/repname.git
pvt file to have access rights of 600