LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-10-2010, 01:03 PM   #1
rjo98
Senior Member
 
Registered: Jun 2009
Location: US
Distribution: RHEL, CentOS
Posts: 1,697

Rep: Reputation: 48
How to create SSH users


I just loaded a new server. I did an adduser with the -c and -p to create a few new users. The users show up in /etc/passwd, but when i try to SSH to the server as them I get access denied.

Is there somewhere I have to add their names to allow them to SSH in? they have /bin/bash as their shell accord to passwd.
 
Old 06-10-2010, 01:19 PM   #2
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,824

Rep: Reputation: 613Reputation: 613Reputation: 613Reputation: 613Reputation: 613Reputation: 613
No (not by default). Did you give them a password? What does your auth log say? (/var/log/secure)
 
Old 06-10-2010, 01:40 PM   #3
rjo98
Senior Member
 
Registered: Jun 2009
Location: US
Distribution: RHEL, CentOS
Posts: 1,697

Original Poster
Rep: Reputation: 48
I gave them a password when i did the adduser command, but looking in that file it says "failed password" for that user account. guess i'll have to set the password again?
 
Old 06-10-2010, 03:21 PM   #4
rjo98
Senior Member
 
Registered: Jun 2009
Location: US
Distribution: RHEL, CentOS
Posts: 1,697

Original Poster
Rep: Reputation: 48
After resetting their passwords again they can ssh in. wonder why setting it when i created the account didnt work.
 
Old 06-10-2010, 03:28 PM   #5
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,824

Rep: Reputation: 613Reputation: 613Reputation: 613Reputation: 613Reputation: 613Reputation: 613
Depends. If you did "adduser", you were prompted for a password and it should have worked. If you did "useradd -p password" then that was expected an already-encrypted password and you gave it a plain text.
 
Old 06-10-2010, 03:29 PM   #6
rjo98
Senior Member
 
Registered: Jun 2009
Location: US
Distribution: RHEL, CentOS
Posts: 1,697

Original Poster
Rep: Reputation: 48
Oh, that was exactly what happened. I did -p password and gave the password in plain text. Good guess!!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
All users SSH -> YES ... All users Console -> NO kspann Linux - Server 2 05-26-2010 11:56 AM
[SOLVED] pam_listfile to limit users domain users SSH access r3z Linux - Enterprise 5 09-19-2009 02:25 AM
How to set up ssh to allow users to ssh into the machine mrotsliah Linux - Server 14 06-03-2009 01:00 PM
SSH access problems: Can only allow users SSH access by adding to root group dhupke Slackware 10 12-21-2008 10:48 AM
How to add users to ssh (Configure ssh) A.Sai Hareesh Linux - Newbie 2 06-30-2008 09:23 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:22 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration