Solved

Linux : access denied while login for new user created

Posted on 2014-02-06
4
784 Views
Last Modified: 2014-02-15
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
0
Comment
Question by:mac_g
4 Comments
 
LVL 17

Assisted Solution

by:Sikhumbuzo Ntsada
Sikhumbuzo Ntsada earned 83 total points
ID: 39838293
The file that holds the config is "/etc/ssh/sshd_config"

I would back that up first and add the user, then restart.
0
 
LVL 68

Accepted Solution

by:
woolmilkporc earned 84 total points
ID: 39838616
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.
0
 
LVL 13

Assisted Solution

by:Sandy
Sandy earned 83 total points
ID: 39838679
-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.

TY/SA
0
 
LVL 5

Expert Comment

by:NARANTHIRAN
ID: 39849831
Have you disabled firewall in the system..
or have you enables the ssh connection in the firewall...
0

Featured Post

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Every server (virtual or physical) needs a console: and the console can be provided through hardware directly connected, software for remote connections, local connections, through a KVM, etc. This document explains the different types of consol…
Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

920 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now