CI/CD
1. Create SSH key
ssh-keygen -t rsa -b 2048 -C "[email protected]"
2. Config VPS
sudo nano ~/.ssh/authorized_keys
3. Edit config file
sudo nano /etc/ssh/sshd_config
PubkeyAuthentication yes
AuthorizedKeysFile .ssh/authorized_keys
4. Restart
sudo service sshd restart
Last updated
Was this helpful?