Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1053
  • Last Modified:

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

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
hhopper
Asked:
hhopper
  • 3
  • 2
1 Solution
 
martin_2110Commented:
any logs in /var/log/messages or /var/log/secure ?
0
 
hhopperAuthor Commented:
There are Logs, Just FTP logins and Actions. And Drupal Logins and Logouts, and I looking for something in particular?
0
 
Morne LateganCommented:
What happens if you log into the console and try to ssh to localhost?
0
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 
hhopperAuthor Commented:
When I try and login ssh to localhost on the box it says Permission Denied. For root and a wheel user.

Humm!!!
0
 
Morne LateganCommented:
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
 
hhopperAuthor Commented:
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

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now