SSH User can't log in.

Posted on 2008-06-10
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.
Question by:jremy9
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions

Expert Comment

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

Author Comment

ID: 21755456
it is set to yes

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

Accepted Solution

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 ?
Get 15 Days FREE Full-Featured Trial

Benefit from a mission critical IT monitoring with Monitis Premium or get it FREE for your entry level monitoring needs.
-Over 200,000 users
-More than 300,000 websites monitored
-Used in 197 countries
-Recommended by 98% of users


Assisted Solution

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.

Author Comment

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.

Author Comment

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.

Expert Comment

ID: 21760253

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

Expert Comment

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.

Featured Post

[Webinar] How Hackers Steal Your Credentials

Do You Know How Hackers Steal Your Credentials? Join us and Skyport Systems to learn how hackers steal your credentials and why Active Directory must be secure to stop them. Thursday, July 13, 2017 10:00 A.M. PDT

Question has a verified solution.

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

I promised to write further about my project, and here I am.  First, I needed to setup the Primary Server.  You can read how in this article: Setup FreeBSD Server with full HDD encryption (…
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…
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…
Viewers will learn how to properly install and use Secure Shell (SSH) to work on projects or homework remotely. Download Secure Shell: Follow basic installation instructions: Open Secure Shell and use "Quick Connect" to enter credentials includi…
Suggested Courses

617 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