LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices

Reply
 
Search this Thread
Old 11-29-2012, 11:31 AM   #1
amplex
LQ Newbie
 
Registered: Nov 2012
Posts: 2

Rep: Reputation: Disabled
Question cannot ssh into machine after rebooting server from ups failure


Hi, Recently my UPS failed again and now I can only console into my Ubuntu server 11.04 VM instead of SSH. I also changed this users password tonight with passwd and tried using the new PW, to no avail. I use PAM authentication. Here is my ssh -vvv verbose output of me trying to log in (sorry, can't copy and paste):

http://i.imgur.com/fWYAC.png


It was working last week! There is pretty much nothing telling me what is going on in this -vvv.. Nothing seems to respond back to my auth req. Maybe PAM is broken or not running. Or else for some reason I need a public key now? Can anyone decipher whats going on here?

Thanks
Alex
 
Old 11-30-2012, 09:04 PM   #2
abefroman
Senior Member
 
Registered: Feb 2004
Location: Chicago
Distribution: CentOS
Posts: 1,249

Rep: Reputation: 53
Try booting in single usermode and resetting the pass.
 
Old 12-01-2012, 03:01 PM   #3
Reuti
Senior Member
 
Registered: Dec 2004
Location: Marburg, Germany
Distribution: openSUSE 11.4
Posts: 1,319

Rep: Reputation: 252Reputation: 252Reputation: 252
If you reset the password, don’t use an empty one (as this would need a nullok argument in the PAM settings). But I wonder why exactly this dat got damaged during the ungraceful shutdown.

What do you mean by “UPS failed” – first the mains failed and you didn’t get the information from the UPS to shut down the machine in a nice way?

NB: you use a tunnel as you login to localhost?
 
Old 12-01-2012, 03:58 PM   #4
amplex
LQ Newbie
 
Registered: Nov 2012
Posts: 2

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Reuti View Post
If you reset the password, don’t use an empty one (as this would need a nullok argument in the PAM settings). But I wonder why exactly this dat got damaged during the ungraceful shutdown.
I have never used an empty password. Not sure, but probably due to the fact that this is a virtual machine on vmware esxi 4.1u1, which wasn't shut down gracefully.

Quote:
Originally Posted by Reuti View Post
What do you mean by “UPS failed” – first the mains failed and you didn’t get the information from the UPS to shut down the machine in a nice way?
It is running in my garage on a small UPS which is for my whole network rack (2 servers, 3 switches, firewall, router, modem). Need to upgrade to a larger rackmount UPS for all that gear, I know.. Or just put the servers on a larger UPS and the other gear will be fine on the smaller one.

Quote:
Originally Posted by Reuti View Post
NB: you use a tunnel as you login to localhost?
I am troubleshooting SSH from localhost since I have no other form of access with SSH down.. I could use a remote box, but why not use a local one?


And today the whole VM is fubar'd and booting to a blank screen after grub.. I think the virtual disk got hosed, in recovery it stops at mounting the swap partition.. so I am currently setting up a new Ubuntu server 12.04.01 LTS VM, locking it down, then I will move the data across and just start fresh.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] security of your machine when connecting to exposed server via ssh loolooyyyy Linux - Security 6 01-31-2012 05:35 AM
authentication failure after rebooting domain controller bino_linux Linux - General 0 08-23-2010 11:26 AM
how to tell if system is rebooting from a crash/power failure? trey85stang Linux - General 2 05-09-2010 07:16 PM
Help pinpointing why machine keeps rebooting. Mickey76 Linux - General 1 11-03-2006 10:59 AM
linux machine rebooting begeek Linux - General 0 04-24-2002 12:58 PM


All times are GMT -5. The time now is 12:02 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration