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 “firstname.lastname@example.org” in below example
git clone email@example.com:orgname/repname.git
pvt file to have access rights of 600