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

12. How to edit or block an existing 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...

17. How to check the status of backup and restore from plugin interface ?

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

6. How to create backup destination?

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

15. How to restore a single file/folder?

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