linux ssh copy id code example
Example 1: copy ssh key to remote server
ssh-copy-id -i ~/.ssh/mykey.pub user@host
Example 2: how to copy ssh key
ssh-copy-id -i ~/.ssh/mykey user@host
Example 3: how to copy ssh id on linux clipboard
1. cd ~/.ssh
2. sudo vi id_rsa.pub
3. Click and hold down the left mouse button to highlight the entire SSH key but do not highlight any spaces after your email address at the end of the SSH key.
4. Paste into Github :)