git ssh key code example
Example 1: how to generate ssh key
$ ssh-keygen -t rsa -b 4096 -C "[email protected]"
Example 2: git clone ssh key
ssh-agent bash -c 'ssh-add /somewhere/yourkey; git clone [email protected]:user/project.git'
Example 3: github ssh-agent
$ ssh-add -K ~/.ssh/id_rsa
Example 4: terminal git add ssh key
$ ssh-add ~/.ssh/id_rsa
Example 5: add ssh key to github
> Enter a file in which to save the key (/c/Users/you/.ssh/id_rsa):[Press enter]