LinuxQuestions.org
Help answer threads with 0 replies.
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 09-25-2009, 05:50 AM   #1
thomas2004ch
Member
 
Registered: Aug 2009
Posts: 537

Rep: Reputation: 32
How to login to sub user?


I installed the Linux and can login with root first.

Then I add a new user with name and password.

But as I try to login as this user with the password, I got error like:
Code:
Access denied
Using keyboard-interactive authentication.
Note: I use putty to connect to the linux.
 
Old 09-25-2009, 06:40 AM   #2
JamesChamberlain
Member
 
Registered: Sep 2009
Location: Wirral, UK
Distribution: Red Hat Enterprise Linux / Fedora 11
Posts: 47

Rep: Reputation: 18
Can you post your /etc/ssh/sshd_config ?

Someonething's probably wrong in here.

Alternatively just switch user when logged in as root
 
Old 09-25-2009, 07:49 AM   #3
thomas2004ch
Member
 
Registered: Aug 2009
Posts: 537

Original Poster
Rep: Reputation: 32
Quote:
Originally Posted by JamesChamberlain View Post
Can you post your /etc/ssh/sshd_config ?

Someonething's probably wrong in here.

Alternatively just switch user when logged in as root
Here is my /etc/ssh/sshd_config
Code:
[root@s005ap02-test ~]# ll /etc/ssh/sshd_config
-rw-------  1 root root 187 Aug 13 11:52 /etc/ssh/sshd_config
[root@s005ap02-test ~]# cat /etc/ssh/sshd_config
Port 22
Protocol 2
SyslogFacility AUTHPRIV
PermitRootLogin without-password
AllowUsers root a5xsuuser
X11Forwarding no
Subsystem       sftp    /usr/libexec/openssh/sftp-server
UsePAM yes
[root@s005ap02-test ~]#
I will let this new user for other colleagues, so I don't want to switch via root.
 
Old 09-25-2009, 09:12 AM   #4
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.8, Centos 5.10
Posts: 17,241

Rep: Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325
http://www.freebsd.org/doc/en/books/...k/openssh.html
Quote:
AllowUsers root a5xsuuser
Only those 2 users are allowed.....
 
Old 09-28-2009, 05:10 AM   #5
thomas2004ch
Member
 
Registered: Aug 2009
Posts: 537

Original Poster
Rep: Reputation: 32
I solved my problem. I did followings:
1. Add the user to "sshd_config"
2. Reboot the machine.
 
Old 09-28-2009, 07:57 PM   #6
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.8, Centos 5.10
Posts: 17,241

Rep: Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325
Actually, just restarting the sshd service is sufficient. No need to reboot HW, this isn't MS.
 
  


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
One user login cannot start scim, other user logins and root OK allend Slackware 3 05-08-2008 08:25 PM
Gnome: Cannot login as default user, sends back to login, works as root Danny-T Linux - Newbie 2 05-27-2006 04:44 AM
Crazy blank dialog boxes and windows at login. Can't login as user soren625 Linux - General 2 08-11-2004 07:30 AM
I have re-installed MK 9.2 but cannot login as user, login as root works. bobinglis Mandriva 2 02-22-2004 12:39 PM
can only login as root? user login doesnt work..? anyone? hacking_4_b33r Linux - General 1 02-06-2004 12:40 AM


All times are GMT -5. The time now is 08:26 AM.

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