LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
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 04-02-2009, 05:52 AM   #1
the182guy
Member
 
Registered: Jan 2009
Posts: 40

Rep: Reputation: 15
SSH problem


I have a debian dedicated server, when I login via SSH it's just saying:

-bash: fork: Cannot allocate memory

If I try any command, e.g. 'ls', it says that message. I had a similar problem before which was solved by killing the process that was using up all the resources. But this time I can't get a process list using 'top' because I just get the above message.

If I could get a process list then I think the 'kill -9' command would work because if I try this command with a random process ID it says process not found for that ID, this could be the only command that works?

I've tried to reboot the server from the webhost control panel, although the CP said it was successfull I don't think it has actually rebooted.

Edit: Also... the websites hosted on the server are all fully operational as if there is no problem at all.

Any help is appreciated!

Last edited by the182guy; 04-02-2009 at 05:56 AM.
 
Old 04-02-2009, 06:13 AM   #2
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.8, Centos 5.10
Posts: 17,241

Rep: Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325
Try booting from the install media, recovery/rescue mode eg
linux rescue
mount the hard disk and check the contents of /var/log. You've either got a runaway program (likely), or a very popular website (not likely).
Could well be someone cracked one of your websites and its spamming or rootkitted.
The contents of /var/log should clue you in. If not, look at running chkrootkit www.chkrootkit.org or rkhunter http://linux.die.net/man/8/rkhunter
 
Old 04-02-2009, 06:25 AM   #3
the182guy
Member
 
Registered: Jan 2009
Posts: 40

Original Poster
Rep: Reputation: 15
Thanks for the help Chris.

I logged onto the Plesk control panel running on the server and was able to kill the process that was using up all the resources.

SSH is working as normal now.
 
Old 04-02-2009, 06:27 AM   #4
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.8, Centos 5.10
Posts: 17,241

Rep: Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325
Good
However, make sure you find out the root cause, or it'll happen again...
 
  


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
Chroot SSH problem: ssh working, not SFTP & SCP. NaCo Linux - Security 3 02-01-2009 03:23 AM
SSH problem - ssh-add not respond FerkoPica Linux - Security 6 05-07-2006 04:47 PM
Passwordless SSH with SSH commercial server and open ssh cereal83 Linux - General 7 04-18-2006 01:34 PM
ssh problem after creating an ssh alias. porotothorpe Linux - General 2 01-25-2006 08:56 PM


All times are GMT -5. The time now is 03:52 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration