-
Go to "Siteground -> SSH Keys Manager" to generate a new SSH key.
-
Click to view the "Private key", copy and save as file "NAME-private.ppk".
-
Launch PuTTYgen, load the private key, choose DSA, and save the private key as file "NAME-putty.ppk".
-
Click to view the "Public key", and copy the public key
-
Go to your "GitHub Settings -> SSH & GPG Keys -> New SSH key" and paste your public key.
- Paste the command below, substituting in your GitHub email address.
ssh-keygen -t rsa -b 4096 -C "your_email@example.com"
-
When you're prompted to "Enter a file in which to save the key," press Enter.
-
At the prompt, type a secure passphrase.
-
Get the private key by pasting the text below. Copy the private key using the command:
cat ~/.ssh/id_rsa
-
Save private key as file "NAME-private.ppk".
-
Launch PuTTYgen, load the private key, and save the DSA private key as file "NAME-putty.ppk".
-
Get the public key by pasting the text below. Copy the public key using the command:
cat ~/.ssh/id_rsa.pub
- Go to your "GitHub Settings -> SSH & GPG Keys -> New SSH key" and paste your public key.
- Install via composer
composer require senangprint/git-deploy:dev-master
- Initialize git repo
git init
- Add safe directory
git config --global --add safe.directory <project root directory>
- Add remote origin
git remote add origin <github repo ssh url>
git fetch origin
git checkout main
- Set upstream
git branch --set-upstream-to=origin/main main
- Pull origin
git pull