7. How to setup SSH key based authentication to a server


Notice : This product has been discontinued as of 3rd January, 2018 from our product list. Any further development and all related support services would also be discontinued. You can however continue to use this product, and any related support services would come under our per hour administrative charge of $25 (USD).

* Create RSA key pair

ssh-keygen -t rsa   

Click Enter for the prompts that follow


* Copy the public key to the remote server.

ssh-copy-id user@remote-ip

Alternatively, you can copy the contents of ~/.ssh/id_rsa.pub in the host server and paste it in ~/.ssh/authorized_keys in the remote server.

cat ~/.ssh/id_rsa.pub | ssh user@remote-ip "mkdir -p ~/.ssh && cat >>  ~/.ssh/authorized_keys"
  • 207 Users Found This Useful
Was this answer helpful?

Related Articles

20. cPProtect Frequently Asked Questions - FAQ's

Notice : This product has been discontinued as of 3rd January, 2018 from our product list. Any...

10. What does full, incremental and differential backup mean?

Notice : This product has been discontinued as of 3rd January, 2018 from our product list. Any...

18. How to re-install/upgrade cPProtect Backup (cPanel) Plugin

Notice: This product has been discontinued as of 3rd January 2018 from our product list. Any...

9. How to create a backup schedule?

Notice : This product has been discontinued as of 3rd January, 2018 from our product list. Any...

14. How to restore backups using the cPProtect Backup (cPanel) ?

Notice : This product has been discontinued as of 3rd January, 2018 from our product list. Any...