ssh-copy-id

Add a public key to a remote machine's authorized_keys file

brewmacoslinux
Try with needOr install directly
Source

About

Add a public key to a remote machine's authorized_keys file

Commands

ssh-copy-id

Examples

Copy your default SSH public key to a remote server$ ssh-copy-id user@remote.example.com
Copy a specific SSH public key to a remote server$ ssh-copy-id -i ~/.ssh/id_rsa.pub user@remote.example.com
Copy SSH key to a remote server on a non-standard SSH port$ ssh-copy-id -i ~/.ssh/id_rsa.pub -p 2222 user@remote.example.com