Adding SSH access to your users

Overview

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:

Enabling SSH

  1. Log into your instance using the Key Pair assigned to it and the default user assigned to it.
  2. Once logged in, run the following to edit your sshd_config file:
    [user@instance]$ sudo vim /etc/ssh/sshd_config
    
  3. In the file, look for the setting named PasswordAuthentication. To the right of it, change no to yes.
  4. 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.

See also

Did this article answer your questions?

Article last updated PST.

Still not finding what you're looking for?