add public key to ssh code example
Example 1: ssh github generate key
$ ssh-keygen -t rsa -b 4096 -C "[email protected]"
Example 2: add public key to server
ssh-copy-id -i ~/.ssh/mykey.pub user@host
Example 3: github how to add ssh key
Host *
AddKeysToAgent yes
UseKeychain yes
IdentityFile ~/.ssh/id_rsa