Solved

SSH User can't log in.

Posted on 2008-06-10
8
2,912 Views
Last Modified: 2013-12-27
I created a new user for someone to log in with but the account can't never log in.  I changed the sshd_config, I gave it a password, he is in the passwd file.  I can see him in webmin and account is enabled, tried adding to a group and still can't log in.

Running Solaris 8 2/02 Sparc.

Every time I try to log in through ssh I get access denied.
0
Comment
Question by:jremy9
8 Comments
 
LVL 4

Expert Comment

by:albuitra
ID: 21755367
Maybe the ssh daemon doesn't allow password authentication
check in sshd.config for password_authentication
0
 

Author Comment

by:jremy9
ID: 21755456
it is set to yes

# To disable tunneled clear text passwords, change to no here!
PasswordAuthentication yes
0
 
LVL 4

Accepted Solution

by:
albuitra earned 105 total points
ID: 21755488
do you assign a valid shell ?
could you look for errors in /var/adm/messages or /var/log/messages ?
0
 

Assisted Solution

by:Pepino125
Pepino125 earned 20 total points
ID: 21756058
also check his/her ip in the etc/hosts.allow and etc/host.deny
another test is to have him try to connect with the -vvv option. you can also have the sshd with the -vvv option for further troubleshooing in case the etc/host.allow or etc/host.deny dont work.
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 

Author Comment

by:jremy9
ID: 21756254
none of these work and the person is already in the allowusers.  I still am getting access denied and am not seeing anything new in the messages log about it.
0
 

Author Comment

by:jremy9
ID: 21760100
so we have may have overlooked the obvious of restartinig the daemon but that was the solutions.  so i think i will pick this as the answer.  points 0.
0
 
LVL 4

Expert Comment

by:albuitra
ID: 21760253
Hi,

IMHO, the points have to be assigned to someone who try to colaborate
Pepino125 and me give some solutions, but we can't do the obvius
0
 

Expert Comment

by:unix-issues
ID: 22137346
Check shell the /etc/passwd file.

grep user /etc/passwd

it seems like noshell,

change it in /etc/passwd file

it ll work.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

In tuning file systems on the Solaris Operating System, changing some parameters of a file system usually destroys the data on it. For instance, changing the cache segment block size in the volume of a T3 requires that you delete the existing volu…
Secure Shell (SSH) is a network protocol for secure data communication, mainly used to administer remote Unix / Linux servers via command line. But it also allows the user to open a secure tunnel between a client and a server where he can send any k…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.

896 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

13 Experts available now in Live!

Get 1:1 Help Now