ssh-copy-id
Install your public key in a remote machine's authorized_keys. More information: https://manned.org/ssh-copy-id.
-
Copy your keys to the remote machine:
ssh-copy-id {{username@remote_host}}
-
Copy the given public key to the remote:
ssh-copy-id -i {{path/to/certificate}} {{username}}@{{remote_host}}
-
Copy the given public key to the remote with specific port:
ssh-copy-id -i {{path/to/certificate}} -p {{port}} {{username}}@{{remote_host}}
License and Disclaimer
The content on this page is copyright © 2014—present the tldr-pages team and contributors.This page is used with permission under Creative Commons Attribution 4.0 International License.
While we do attempt to make sure content is accurate, there isn't a warranty of any kind.