git copy ssh key code example
Example 1: how to copy ssh key
ssh-copy-id -i ~/.ssh/mykey user@host
Example 2: git clone ssh key
ssh-agent bash -c 'ssh-add /somewhere/yourkey; git clone [email protected]:user/project.git'
Example 3: github pulic keys
curl https://github.com/<username>.keys
Example 4: add ssh to github
$ clip < ~/.ssh/id_ed25519.pub
# Copies the contents of the id_ed25519.pub file to your clipboard