I have created new user using useradd USER
, but I can't SSH to the server and login with it. I already have another account to which I can SSH easily.
Running ssh -v USER@domain.tld
is returning this message after entering password:
debug1: Authentications that can continue: publickey,gssapi-keyex,gssapi-with-mic,password
When trying acocunt that works I get
debug1: Authentication succeeded (password).
I know the password is correct, because once I SSH using the working account I can change user successfully.
Best Answer
I had a similar issue. Turned out that
/etc/ssh/sshd.conf
hadAllowUsers
line. Resolved it by adding new user to that line and restarting SSH.