27/08/2023
- Go to
terminal
of your cpanel account and type the command below to generateecdsa
key 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
Settings
of your private github repo. - Under
Security
on the side nav, click onDeploy keys
. - Add
Title
and paste that public key inKey
.
Allow write
access depends whether you like to push changes to your github repo from your hosting.