LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   How to login to sub user? (https://www.linuxquestions.org/questions/linux-newbie-8/how-to-login-to-sub-user-757688/)

thomas2004ch 09-25-2009 04:50 AM

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.

JamesChamberlain 09-25-2009 05:40 AM

Can you post your /etc/ssh/sshd_config ?

Someonething's probably wrong in here.

Alternatively just switch user when logged in as root :)

thomas2004ch 09-25-2009 06:49 AM

Quote:

Originally Posted by JamesChamberlain (Post 3696619)
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.

chrism01 09-25-2009 08:12 AM

http://www.freebsd.org/doc/en/books/...k/openssh.html
Quote:

AllowUsers root a5xsuuser
Only those 2 users are allowed.....

thomas2004ch 09-28-2009 04:10 AM

I solved my problem. I did followings:
1. Add the user to "sshd_config"
2. Reboot the machine.

chrism01 09-28-2009 06:57 PM

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


All times are GMT -5. The time now is 07:01 PM.