Skip to content

Instantly share code, notes, and snippets.

@akramhossainrabbi
Last active January 13, 2024 12:42
Show Gist options
  • Select an option

  • Save akramhossainrabbi/d57ad0fa22db87676f3cda7152277ced to your computer and use it in GitHub Desktop.

Select an option

Save akramhossainrabbi/d57ad0fa22db87676f3cda7152277ced to your computer and use it in GitHub Desktop.
Process of cloning private git repo to cpanel

Process of cloning private git repo to cpanel

Generate ssh key (cpanel terminal command)

ssh-keygen -t rsa -b 2048 -C "username@cpanelurl"

Give permission

touch ~/.ssh/config
chmod 0600 ~/.ssh/config
chown username:username ~/.ssh/config

Get the public key you generated from cpane>ssh access>view/download and go to

git repo settings > deploy keys > add deploy key. Paste it here and allow write access and save it.

Connect ssh to repo

ssh -T [email protected]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment