add my ssh key to remote server code example
Example 1: add public key to server
ssh-copy-id -i ~/.ssh/mykey.pub user@host
Example 2: setting up the ssh keys
scp $HOME/.ssh/id_rsa.pub [email protected]:~/.ssh/authorized_keys
ssh-copy-id -i ~/.ssh/mykey.pub user@host
scp $HOME/.ssh/id_rsa.pub [email protected]:~/.ssh/authorized_keys