copy ssh key to remote server
ssh-copy-id -i ~/.ssh/mykey.pub user@host
copy ssh key to remote server
ssh-copy-id -i ~/.ssh/mykey.pub user@host
copy remote ssh key mac
cat ~/.ssh/id_rsa.pub | ssh <user>@<hostname> 'cat >> .ssh/authorized_keys && echo "Public key successfully copied"'
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us