CI/CD

1. Create SSH key

ssh-keygen -t rsa -b 2048 -C "[email protected]"

2. Config VPS

sudo nano ~/.ssh/authorized_keys
circle-info

Then add public key.

3. Edit config file

sudo nano /etc/ssh/sshd_config
circle-info

Change to

PubkeyAuthentication yes
AuthorizedKeysFile .ssh/authorized_keys

4. Restart

sudo service sshd restart

Last updated