CI/CD
1. Create SSH key
ssh-keygen -t rsa -b 2048 -C "[email protected]"2. Config VPS
sudo nano ~/.ssh/authorized_keys3. Edit config file
sudo nano /etc/ssh/sshd_configPubkeyAuthentication yesAuthorizedKeysFile .ssh/authorized_keys4. Restart
sudo service sshd restartLast updated
Was this helpful?