(OLDER) <- More Stuff -> (NEWER) (NEWEST)
Printer Friendly Version



Centos ssh failure


2009/06/08

I have a customer who uses a fairly new Centos server to function as an ssh gateway to his ancient SCO box. On Friday he told me that no one could ssh in.

My first thought was the router, but it seemed to be operating correctly. I had him log in at the console and try an "ssh localhost". That complained about syntax errors in ssh_config at a few lines. I had him read me the offending lines; there was nothing wrong.



I needed to login myself and didn't want to drive to Boston. Not only didn't I want to waste the time, but this customer has an impossible parking situation. He actually has a good sized parking lot, but because it was too big for what his employees needed, he rented spaces to a used car dealer! Whenever I have to go there, I cringe because I can almost never find a parking spot anywhere near them.

So, I reprogrammed the router to let my ip in through telnet and had him turn it on. Normally telnetd wouldn't even be installed on a Linux box; I don't even remember why it was here, but having it available certainly saved some time and trouble.

After logging in I confirmed that there really was nothing wrong with the ssh_config. I next looked at /var/log/secure and found entries like this:

Jun  8 07:31:59 e-smith sshd[24987]: Accepted password for rmtxyz 
from ::ffff:127.0.0.1 port 53387 ssh2
Jun  8 07:31:59 e-smith sshd[24989]: pam_unix(sshd:session): session 
opened for user rmtxyz by (uid=1000)
Jun  8 07:31:59 e-smith sshd[24989]: pam_loginuid(sshd:session): 
set_loginuid failed opening loginuid
Jun  8 07:31:59 e-smith sshd[24989]: pam_loginuid(sshd:session): 
set_loginuid failed 
Jun  8 07:31:59 e-smith sshd[24989]: fatal: PAM session setup failed[14]: 
Cannot make/remove an entry for the specified session
Jun  8 07:31:59 e-smith sshd[24987]: syslogin_perform_logout: 
logout() returned an error

That looks like a PAM problem, but I couldn't see anything wrong with PAM either. I scouted around the web a bit and found references to similar problems from a few years back. These looked like they might have come from a bad update to ssh at that time, but how could that be affecting us now? That didn't make sense.

Nevertheless, I figured that would only take a minute to try, so I did a "yum update openssh" and to my complete surprise ssh logins started working again.

I have no idea what this was, but it's fixed for now. I took the telnet config out of the router and all is back to normalcy.




Click here to add your comments





Mon Jun 8 15:49:47 2009: Subject:   Ralph
http://linuxcoaching.eu
gravatar
What irritates me is the appearance of version 6 IP numbers in the log file. I usually see version 4 here.
Maybe the update has fixed an inconsistency of ssh with IPv6? Did the update actually overwrite any system files?





Mon Jun 8 16:38:50 2009: Subject:   TonyLawrence

gravatar
Yes, it definitely updated ssh. I didn't even notice those addresses..



Mon Jun 8 17:09:20 2009: Subject:   TonyLawrence

gravatar
And after the update, it's back to ipv4 addresses in the log.. hmm...



Mon Jun 8 17:10:54 2009: Subject:   TonyLawrence

gravatar
But that's an old bug too: https://bugzilla.redhat.com/show_bug.cgi?id=172181





Mon Jun 8 18:51:17 2009: Subject:   TonyLawrence

gravatar
I'm wondering if Centos somehow managed to push out some old code.. and if so, what else may bite me in the nether cheeks?

Don't miss responses! Subscribe to Comments by RSS or by Email

Click here to add your comments


If you want a picture to show with your comment, go get a Gravatar



numly esn 26241-090608-179543-96
numly barcode

Have you tried Searching this site?

Unix/Linux/Mac OS X support by phone, email or on-site: Support Rates

This is a Unix/Linux resource website. It contains technical articles about Unix, Linux and general computing related subjects, opinion, news, help files, how-to's, tutorials and more. We appreciate comments and article submissions.

Publishing your articles here

Jump to Comments



Many of the products and books I review are things I purchased for my own use. Some were given to me specifically for the purpose of reviewing them. I resell or can earn commissions from the sale of some of these items. Links within these pages may be affiliate links that pay me for referring you to them. That's mostly insignificant amounts of money; whenever it is not I have made my relationship plain. I also may own stock in companies mentioned here. If you have any question, please do feel free to contact me.

Specific links that take you to pages that allow you to purchase the item I reviewed are very likely to pay me a commission. Many of the books I review were given to me by the publishers specifically for the purpose of writing a review. These gifts and referral fees do not affect my opinions; I often give bad reviews anyway.

We use Google third-party advertising companies to serve ads when you visit our website. These companies may use information (not including your name, address, email address, or telephone number) about your visits to this and other websites in order to provide advertisements about goods and services of interest to you. If you would like more information about this practice and to know your choices about not having this information used by these companies, click here.


book graphic unix and linux troubleshooting guide

My Troubleshooting E-Book will show you how to solve tough problems on Linux and Unix systems!



 I sell and support
 Kerio Mail server




pavatar.jpg
More:
       - Linux
       - SSH
       - Networking
       - Troubleshooting
       - Security


Unix/Linux Consultants

Skills Tests

Guest Post Here











My Favorites

Change Congress