CI/CD

1. Create SSH key

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

2. Config VPS

sudo nano ~/.ssh/authorized_keys

Then add public key.

3. Edit config file

sudo nano /etc/ssh/sshd_config

Change to

PubkeyAuthentication yes
AuthorizedKeysFile .ssh/authorized_keys

4. Restart

sudo service sshd restart

Last updated

Was this helpful?