Install Git
Configure Git user
SSH key setup for Git
Generate an SSH key pair on the VPS (if you don’t already have one):Ed25519 is more secure and faster than RSA. If your Git provider doesn’t support it, use
-t rsa -b 4096 instead.Add SSH key to Git provider
Display your public key:- GitHub: Settings → SSH and GPG keys → New SSH key
- GitLab: Preferences → SSH Keys
- Gitea: Settings → SSH / GPG Keys
Test SSH connection
github.com with your Git provider’s hostname if different.)