-
Open a terminal from cPanel
-
Use
ssh-keygento generate a key (with no passphrase)Note: You can't use SuperHosting's GUI SSH key manager because it demands a passphrase, and that's not an option since kirby-git can't fill it in.
-
Run
cat ~/.ssh/id_rsa.pubto print the public key and copy it -
Go to GitHub and paste the public key (in the Deploy Keys settings panel)
-
Test with
ssh -T -p 443 [email protected]Expected output:
Hi {{ owner }}/{{ repo }}! You've successfully authenticated, but GitHub does not provide shell access.
-
Create a
~/.ssh/configfile that looks like this:Host github.com HostName ssh.github.com User git Port 443This allows you to ssh to
github.comwithout having to specify any settings (e.g. port). -
Verify that your
configfile works by runningssh -T github.com. You should get the same output:Hi {{ owner }}/{{ repo }}! You've successfully authenticated, but GitHub does not provide shell access.
-
Run
rm -rf ~/public_htmlto clear the folder where the site will be (SH adds some boilerplate files there) -
Run
git clone [email protected]:{{ owner }}/{{ repo }}.gitto copy the repo -
Run
git checkout -b liveto switch to branchlive -
If the plugin shows a wrong version of Git, there are likely multiple versions installed on the system. Use the
oblik.git.binoption to specify the latest one to use -
Log in the panel and test it out
Created
November 20, 2020 17:11
-
-
Save hdodov/2d04892ecb5eff189a4a27da7ab6606d to your computer and use it in GitHub Desktop.
SuperHosting Kirby Git SSH setup instructions
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment