If you've created a new user to manage your website, it may be a good idea to enable SSH access for that user. This is often necessary for sites such as WordPress that require the user to make additional configurations.
To enable, you will need to edit your sshd_config file. For information on how to edit a file via SSH, view the following article:
- Log into your instance using the Key Pair assigned to it and the default user assigned to it.
- Once logged in, run the following to edit your sshd_config file:
[user@instance]$ sudo vim /etc/ssh/sshd_config
- In the file, look for the setting named PasswordAuthentication. To the right of it, change no to yes.
- Save the file, then restart SSHD with the following command:
[user@instance]$ sudo service sshd restart
You can now log into the instance via SSH with this new user.
Will this make your instance less secure? Not significantly. Since this new user only has access to its own files, the damage it could cause if it were compromised is minimal.