How to use github passwordlessly (using keys)

How to use github passwordlessly (using keys)

  • Generate a RSA key, separate from your PACE key, e.g. '~/.ssh/id_rsa_github'
       ssh-keygen -t rsa -f ~/.ssh/id_rsa_github
        host gt_github
	        HostName	github.gatech.edu
	        IdentityFile	/nv/hp16/<username>/.ssh/id_rsa_github
	        User		git
  1. Use the specified "host" instead of the server name when cloning the repo. E.g.:
        git clone git@gt_github:<username>/name_of_the_repo.git

Please note the use of "gt_github" instead of "github.gatech.edu".

You must load a recent git module on PACE to access this git repo!
$ module load git/2.13.4
$ which git
/usr/local/pacerepov1/git/2.13.4/bin/git
$ git clone https://github.gatech.edu/<username>/name_of_the_repo.git