Copy Public Key to the Server

"ssh-copy-id" is a program that will copy your public SSH key to a server you specify.

Usage

ssh-copy-id [user]@[server]
  • [user] -- The user on the remote server that you want to use your public key.
  • [server] -- The remote server that you want to access via SSH key. (Note: you can provide an IP address or domain name.)

Example

ssh-copy-id root@w3db.org