36 words
1 minutes
Setup Deploy key for Github repository on hosting
Generate OpenSSH here: https://8gwifi.org/sshfunctions.jsp
Add public key to Deploy keys.
Add private key to
~/.ssh/
on hosting.Setup
~/.ssh/config
on hosting:
Host github.com-<repo>
Hostname github.com
IdentityFile=~/.ssh/<private-key>
- And finally you can clone repo with SSH.
git clone <[email protected]><repo>:<username>/<repo>.git
5.1. If you got key permission errors
chmod 700 ~/.ssh
chmod 600 ~/.ssh/*
Sources: