Ankoku

Registered
Jul 8, 2006
4
0
151
I've searched the forums both last night and the last hour or so hopeing to find the problem, but no luck. Sorry if the answer is posted somewhere.

Anyway, my server is running fine as far as I can tell, however shell has been acting weird the last week or so, wheras it was running fine before this time. I open PuTTy (or any other shell access client) and instead of prompting me for Username/Password like it used to, it instead gives me an error:

Network error: Connection timed out

I re-started the SSH server through WHM, and still no luck. I also tried this from a friends house with a different ISP incase a setting was changed on my firewall, but it did it there as well. I tried the SSH client built into cPanel, and it gives the prompt box for username and password, but when you type in and submit, the window closes...

Any ideas or am I just kind-a stuck in the water here?...
 

AndyReed

Well-Known Member
PartnerNOC
May 29, 2004
2,217
4
193
Minneapolis, MN
Ankoku said:
I open PuTTy (or any other shell access client) and instead of prompting me for Username/Password like it used to, it instead gives me an error:

Network error: Connection timed out
You might be blocked by a firewall, or /etc/hosts.allow/deny (if these are activated).

Make sure you are using the correct shell port, default is 22 (if not changed).
 

Ankoku

Registered
Jul 8, 2006
4
0
151
Well it worked fine before, just stopped working about.... 4 days ago. I checked my firewall, and it has a specific "Allow Shell (Port 22)" setting which is on... As for the server it's self, I didn't change anything, so no idea what's going on... I have been using port 22, thats what worked in past, and what i'm trying to connect to now, but getting that error..

As for /etc/hosts.allow/deny, don't know how to get in that folder/access that file without Shell or SCP, which both aren't letting me connect anymore. Also, i'm the only one with access to the server, and it's unmanaged, so nothing was changed, it just stopped working on me.
 

chirpy

Well-Known Member
Verifed Vendor
Jun 15, 2002
13,437
33
473
Go on, have a guess
Most likely a problem with sshd running up, then. You're most likely going to have to sort it out through the servers console port, unless the sshd default config trick works, i.e. login to WHM and then change the URL to:

Code:
https://11.22.33.44:2087/scripts2/doautofixer?autofix=safesshrestart
You can also flush iptables with:

Code:
https://11.22.33.44:2087/scripts2/doautofixer?autofix=iptablesflush
If you don't have console access, then you could have a look at the third-party WHM Virtual Console product that's available.
 

Ankoku

Registered
Jul 8, 2006
4
0
151
Tried both of those links and it comes up 404 not found. As for console, i'm not sure what it is and or if I have access... Sorry, i'm a newb with this type of stuff.
 

chirpy

Well-Known Member
Verifed Vendor
Jun 15, 2002
13,437
33
473
Go on, have a guess
So long as you're using a recent release of cPanel, they should work and you're possible putting them in incorrectly (remember to reconstruct the URL for your hostname/IP).

You'd need to speak to your datacenter or NOC about hands-on help for access to your servers serial console if they don't provide you with remote access to it.
 

Ankoku

Registered
Jul 8, 2006
4
0
151
You are my new favorite person :D I missed the "s" on https, when I put that in there it worked and now Shell is asking for username/password again.

Sorry for the trouble, I really apreciate your help ^_^
 

mohit

Well-Known Member
Jul 12, 2005
553
0
166
Sticky On Internet
Re: related but strange login problem

hi,
iam having strange issue, my SSH or root whm doesn't work after reboot.
this problem occured only after reboot request was put at DC.

box came up fine with everything, pop3, http, mysql etc etc but iam not able to access it through login info which was working fine just before the reboot.

yesterday same thing happened on another box and before the DC could do a manuall password reset, login info started working automatically so we closed the ticket.
Ya after this issue rkhunter was run, everything seemed ok except some checksums.


Now my provider rebooted the wrong box and again iam out of SSH or WHM ??


any seniors with a Bright Idea on whats could be the reason.

thanx,
mohit
 

mgsnnetworks

Well-Known Member
Sep 11, 2005
48
0
156
Rhyl, North Wales, UK
can you not login to whm or root? in these cases you need to contact the Data Centre and ask them to boot into single user mode to recreate your root password. Once done try executing the following command to try to bring WHM back up:

/etc/init.d/cpanel restart

To fix SSH, Type: /etc/init.d/sshd restart
You should see the progress of the request and if it was successful.