generate ssh key git bash code example
Example 1: add ssh key to github
$ ssh-keygen -t rsa -b 4096 -C "[email protected]"
Example 2: terminal git add ssh key
$ ssh-add ~/.ssh/id_rsa
Example 3: terminal git add ssh key
$ eval "$(ssh-agent -s)"
> Agent pid 59566
Example 4: add ssh key to github
> Enter passphrase (empty for no passphrase): [Type a passphrase]
> Enter same passphrase again: [Type passphrase again]