Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

my problem is that i cant connect to my server trow SSH. unless I do full restart to my server, and then, I can log in via SSH. after about 24 hours (from the restart) , again I cant connect to my server via SSH.

using WHM cPanel server, Php ver 5.2.9, system linux

p.s. FTP + web server works fine. regards, or koren.

share|improve this question
What type of Linux? Can you provide us some logs of auth/messages? – Bart De Vos Mar 31 '11 at 8:16
Doesn't give any information that can be used to resolve the problem sorry - I'd suggest contacting your hosting company. It could be anything from a memory issue through to SSH being firewalled automatically due to failed hacking attempts. I think you're best to contact your hosting company for support. – Ewan Leith Mar 31 '11 at 9:03

Why are you telling us what version of PHP you are using? It would be a lot more help to know what sshd is running.

Did you read your logs for diagnostic messages? What are your iptables settings? Are you running fail2ban?

Since you've got PHP and the webserver is working, try writing a we script to see if the sshd is running / if the port is open.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.