ssh -T git@github.com #Check if you are authenticated via key git remote set-url origin git@github.com:username/repo.git #inside your project
ssh-agent bash -c 'ssh-add /somewhere/yourkey; git clone git@github.com:user/project.git'