LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-26-2008, 02:24 PM   #1
goldmar
LQ Newbie
 
Registered: Feb 2005
Posts: 3

Rep: Reputation: 0
Problem with vServer, SSH doesn't start


Hi,

I've got Ubuntu 8.04 LTS running on a vServer and last week my server hoster has updated the kernel and (hence rebooted the server) and since then my server doesn't boot correctly anymore.

That means:
Ping works.
SSH does not. (Port is closed)
Apache does not. (Port is closed)
POP3 and Imap ports are open and I can connect to pop3 via telnet (didn't test anything else).

I've got no access to the server, there is only a "rescue console" with which I can access and edit the files, check the log files and restart the server.

The only strange thing I could find in the log files is:

Code:
Nov 26 19:43:28 ... postfix/tlsmgr[8130]: warning: cannot open entropy device /dev/urandom: No such file or directory
Nov 26 19:43:28 ... postfix/tlsmgr[8130]: exiting to reopen external entropy source dev:/dev/urandom
Nov 26 19:43:29 ... postfix/tlsmgr[8151]: warning: cannot open entropy device /dev/urandom: No such file or directory
Nov 26 19:43:29 ... postfix/tlsmgr[8151]: exiting to reopen external entropy source dev:/dev/urandom
Nov 26 19:43:30 ... postfix/tlsmgr[9483]: warning: cannot open entropy device /dev/urandom: No such file or directory
Nov 26 19:43:30 ... postfix/tlsmgr[9483]: exiting to reopen external entropy source dev:/dev/urandom
I think it's probably related to why SSH doesn't work.

Any ideas? Is there a possibility to make sshd log why it doesn't start?

Last edited by goldmar; 11-26-2008 at 02:32 PM.
 
Old 11-27-2008, 10:42 AM   #2
jstephens84
Senior Member
 
Registered: Sep 2004
Location: Nashville
Distribution: Manjaro, RHEL, CentOS
Posts: 2,098

Rep: Reputation: 102Reputation: 102
first off check to see if any port blocking has been added to iptable. this can be done by typing in the following.
Code:
iptables -L
Also post your syslog, and what happens when you try and start the ssh dameon. And last ask you server hoster what the hell they were doing touching your vm unless when you signed up they told you that is something they would do.
 
Old 11-27-2008, 04:50 PM   #3
goldmar
LQ Newbie
 
Registered: Feb 2005
Posts: 3

Original Poster
Rep: Reputation: 0
Well... the problem is that I don't have any access to the server *because* ssh isn't starting! Hence, I can't try to start ssh and also I can't check iptables.

The "rescue console" only works while the server is not running. I've got access to the files but to test the changes I've got to quit the rescue mode and restart the server.

The quote above is from the syslog. There is nothing from SSHD. How can I make ssh write something helpful into the logs? Currently, it only logs login attempts.

Quote:
And last ask you server hoster what the hell they were doing touching your vm unless when you signed up they told you that is something they would do.
Well, they've upgraded the kernel on their host OS... actually that should not change anything for my VM. Probably there already was something bad in my VM and it was the restart that made it go havoc.
 
Old 11-28-2008, 02:11 AM   #4
blackhole54
Senior Member
 
Registered: Mar 2006
Posts: 1,896

Rep: Reputation: 61
Quote:
Originally Posted by goldmar View Post
How can I make ssh write something helpful into the logs? Currently, it only logs login attempts.
If the rescue console allows you to modify sshd_config, you might consult its man page . I particularly direct your attention to the keyword LogLevel. Please be aware that the arguments to keywords are case sensetive.
 
Old 12-01-2008, 11:55 AM   #5
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Since you have access to the files, can't you just 'mknod -m 644 /dev/random c 1 8; mknod -m 644 /dev/urandom c 1 9; chown root:root / dev/random /dev/urandom'?
 
  


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
Vserver mahmoud Linux - Software 1 01-25-2008 09:52 AM
UML / vserver xpucto Linux - Networking 1 09-28-2005 12:42 PM
Fedora Core 1 Vserver kernel problem (ipt_state) atray Linux - Security 1 11-16-2004 03:34 PM
I turned off SSH, but I cant get it back! How do you start SSH on boot? nmoog Slackware 2 02-08-2004 05:18 PM
Vserver Help Please KSammut Linux - Networking 0 08-31-2003 07:08 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:29 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration