-
Open a terminal from cPanel
-
Use
ssh-keygen
to 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.pub
to 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/config
file that looks like this:Host github.com HostName ssh.github.com User git Port 443
This allows you to ssh to
github.com
without having to specify any settings (e.g. port). -
Verify that your
config
file 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_html
to clear the folder where the site will be (SH adds some boilerplate files there) -
Run
git clone [email protected]:{{ owner }}/{{ repo }}.git
to copy the repo -
Run
git checkout -b live
to 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.bin
option 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