Linux : access denied while login for new user created

I have created new user using below command in Linux  from root user

#useradd -d /home/user01 -p momra01 pwd01

while login to by using this user from putty  SSH, I am getting access denied message.

please advice steps
mac_gAdmin - Oracle Fusion Middleware suiteAsked:
Who is Participating?
woolmilkporcConnect With a Mentor Commented:
The user must set their password first by means of "passwd".
Login with a password set by root leads to a prompt requesting this action, which ssh doesn't tolerate.
Sikhumbuzo NtsadaConnect With a Mentor Senior IT TechnicianCommented:
The file that holds the config is "/etc/ssh/sshd_config"

I would back that up first and add the user, then restart.
SandyConnect With a Mentor Commented:
-p, --password PASSWORD
    The encrypted password, as returned by crypt(3). The default is to disable the password.

    Note: This option is not recommended because the password (or encrypted password) will be visible by users listing the processes.

Have you disabled firewall in the system..
or have you enables the ssh connection in the firewall...
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.