- On the VPS. Setup a user in
sudo
group with sudo permissions
$ adduser deployer --ingroup sudo
- NOTE: On Ubuntu >= -v11.0 the admin group was removed, the default is
sudo
- On your local machine, install ssh-copy-id:
$ brew install ssh-copy-id
- Then, copy your ssh certificate onto your new slice form your local machine: enter password on prompt
$ ssh-copy-id deployer@IP_ADDRESS_OF_VPS
- After testing that you can ssh into your VPS, open the
sshd_config
file on your slice, to improve security:
$ sudo nano /etc/ssh/sshd_config
- The main things to change (or check) are: