This question already has an answer here:
- openSuse, new user cannot login 1 answer
I have an install script that creates a user:
sudo useradd -c "My test user" -G users -m -p "passw0rd$" -K PASS_MAX_DAYS=-1 -s /bin/bash myuser
However when I try to log in via ssh I get the following error:
myuser@myserver's password: Permission denied, please try again.
But when I login as root and update the password to the same one specified in the original command:
I am then able to log in without any problem. What could be causing this problem?