I am trying to create new users using useradd
command using root credentials it is getting created properly but when I log in with the newly created user with its credentials using a PuTTY Console, I am able to enter the username but when I give the password, it hangs there for a long time until the PuTTY window session timeout happens and the window is closed. However when I use root credentials, it quickly enters the session.
I tried checking the AllowUsers
under file /etc/ssh/sshd_config
but I didn't find any matching entry, so, I manually tried adding AllowUsers temipuser
where temipuser
is the username I created. Post making this change from another PuTTY Console I again tried entering this username but it is again the same. I am totally clueless why is this happening.
Another thing is, if I add any user, say just temipuser
, to the AllowUsers
entry in the sshd_config
file, will the root user still have access or will it not get access? I don't want to screw the things here. I understand AllowUsers
lets only the specified users and denies others.
/var/log/auth.log
should use some useful information. Can you add anything you find to your question?/etc/ssh/sshd_config
to setLogLevel
toDebug
while you try logging in to get as much information as possible.temipuser
is 9... Can you log in locally (i.e., not over ssh)? BTW, I don't know offhand ifsshd
reads its configuration each time, you might have to restart it (or force it to reread configuration) after changes.ssh temipuser@localhost
and enter the user's password when prompted?