27/08/2023
- Go to
terminalof your cpanel account and type the command below to generateecdsakey pair
ssh-keygen -t ecdsa -b 251 -c "EMAIL_ADDRESS""EMAIL_ADDRESS"is the email that you use for your github account.- In your cpanel terminal go to
.ssh/folder
cd .ssh/- You can read your PublicKey, that has to be added to your
github repo
cat id_ecdsa.pub- You can see your public key, copy that public key and go to your github private repo
- Go to
Settingsof your private github repo. - Under
Securityon the side nav, click onDeploy keys. - Add
Titleand paste that public key inKey.
Allow writeaccess depends whether you like to push changes to your github repo from your hosting.

May be a typo, cPanel would not let me use 251 as length it had to be 256