LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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, 04: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 04:56 AM.
 
Old 04-02-2009, 05:13 AM   #2
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,359

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
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, 05: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, 05:27 AM   #4
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,359

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


Reply



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

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

All times are GMT -5. The time now is 02:12 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