Skip to content
Maxim Orlov Logo

Helping Node.js developers write robust applications 🚀

Add Public Key to Server With ssh-copy-id

💡 To SSH into a server using a key pair you need to add your public key to the server's "authorized_keys" file.

Besides old-school copy-pasting your public key into the file, you can also use ssh-copy-id:

👉🏼 `ssh-copy-id -i ~/.ssh/mykey.pub user@host`

A preview of the VPS Security Cheatsheet.

Download the VPS Security Cheatsheet

No spam! 🙅🏻‍♀️ Unsubscribe at any time.