Grant SSH Access (usermod)

Linux does not assume new user accounts should have be used for SSH access (and that's a good thing for security reasons). So you need to explicitly enable SSH access for a user account using a program called usermod.

Reminder: The root user has SSH permission by default.

Syntax

usermod -s /bin/bash [username]
  • [username] -- The username of the Linux account you wish to modify.

Example

usermod -s /bin/bash david