Local Device Setup

1. Generate SSH Key Pair

Generate SSH key pair on your local device (not VPS):

ssh-keygen -t ed25519 -f deploy_key

This will generate:

2. Configure VPS SSH Access

# You should be logged in as deploy_user
mkdir -p ~/.ssh 
chmod 700 ~/.ssh 
touch ~/.ssh/authorized_keys 
chmod 600 ~/.ssh/authorized_keys
nano ~/.ssh/authorized_keys
cat /home/server/.ssh/id_rsa.pub
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAILstbbZT76cJ0+ogky5UCgdzFx7XF/9bOxAyELYzKsyf zhiken@GAN-LAPTOP

3. Add Secrets to GitHub

Go to: GitHub Repo → Settings → Secrets and Variables → Actions