Solved

Unable to login SSH with any user name/password on Centos server - Checked the basics

Posted on 2009-04-07
6
1,046 Views
Last Modified: 2012-05-06
I have a problem and any suggestions or direction on what I might do would be helpful.

I have a Centos 5.X Server with Direct Admin installed on it. I have a root user and password that worked and I was able to SSH in fine. Out of nowhere the password did not work/unable to login. So I had a KVM hooked up and I was able to login root locally over the KVM.
I have checked the basics.
Checked SSHD Config to allow root login and password authentication - Good
Restarted the SSHD - Came Back fine.
I created a wheel group user and tried to login and then su -, it will not let me login with the wheel group user either. I can get to the login prompt just fine just will not authenticate any user what so ever. I have even compared settings to other servers for the SSHD config.
But like I said locally logging in is no problem. Just no ssh ability to login and nothing seems out of place.

If anyone could provide me some suggestion on possible trouble shooting or checks that might be the issue it would be appreciated. Also no updates were done to the server that I am aware of. Just a reboot and a single user mode reset of password before this started.

Thanks for your help in advance.
0
Comment
Question by:hhopper
  • 3
  • 2
6 Comments
 
LVL 7

Expert Comment

by:martin_2110
ID: 24092802
any logs in /var/log/messages or /var/log/secure ?
0
 

Author Comment

by:hhopper
ID: 24092841
There are Logs, Just FTP logins and Actions. And Drupal Logins and Logouts, and I looking for something in particular?
0
 
LVL 7

Expert Comment

by:Morne Lategan
ID: 24092850
What happens if you log into the console and try to ssh to localhost?
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Author Comment

by:hhopper
ID: 24092871
When I try and login ssh to localhost on the box it says Permission Denied. For root and a wheel user.

Humm!!!
0
 
LVL 7

Expert Comment

by:Morne Lategan
ID: 24092913
try

ssh -v localhost

for debug info on why its kicking you

Might be a file permission. sshd is paranoid about incorrect file permissions
0
 

Accepted Solution

by:
hhopper earned 0 total points
ID: 24092930
I FOUND THE ISSUE!
For some reason there was a added line on the bottom of the sshd_config

AllowUsers ad***

Not sure how it got there, I am guessing maybe DirectAdmin? Not Sure about that
I added root to the AllowUsers and it works fine.

I never even thought or looked at the very bottom of the file.

Thanks for everyones help, but I guess it was of my own doing!
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
android secure ftp 3 73
ftp to port 21 4 69
Upgraded from Debian 7 to 8.7 and got black screen 20 99
Linux MD5 Hash 7 66
Network Interface Card (NIC) bonding, also known as link aggregation, NIC teaming and trunking, is an important concept to understand and implement in any environment where high availability is of concern. Using this feature, a server administrator …
Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

733 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