Results 1 to 21 of 21
-
07-11-2009, 04:03 AM #1Web Hosting Master
- Join Date
- May 2007
- Posts
- 2,042
server unexpectedly closed network connection
Hi guys! When I tried to log in via SSH to my VPS I get:
server unexpectedly closed network connection
Any ideas? I still can access via Webmin and use other services configured before. I am on cent os
How can I possibly fix it if I cant access?
-
07-11-2009, 05:34 AM #2Intangible Asset Appraiser
- Join Date
- Mar 2009
- Location
- Austin Tx
- Posts
- 2,007
Webmin > Servers > SSH Server
Stop / Start
If you got to get medieval, System > Running Processes
find /usr/sbin/sshd , click the pid, you'll see where you can HUP, etc.
If that doesn't happen, something else is wrong...do you have denyhost, iptables or some auto-ban script running that you could have possibly set off?This is the best signature in the world....Tribute!
(It is not the best signature in the world, no. This is just a tribute)
-
07-11-2009, 05:38 AM #3The Linux Specialist
- Join Date
- Mar 2003
- Location
- /root
- Posts
- 23,981
Moved > VPS Forum.
Specially 4 U
Reseller Hosting: Boost Your Websites | Fully Managed KVM VPS: 3.20 - 5.00 Ghz, Pure Dedicated Power
JoneSolutions.Com is on the net 24/7 providing stable and reliable web hosting solutions, server management and services since 2001
Debian|Ubuntu|cPanel|DirectAdmin|Enhance|Webuzo|Acronis|Estela|BitNinja|Nginx
-
07-11-2009, 11:42 AM #4Web Hosting Master
- Join Date
- May 2007
- Posts
- 2,042
-
07-11-2009, 11:56 AM #5Disabled
- Join Date
- Apr 2008
- Posts
- 15
Is there enought space left on the vps hdd?
Have your tried flushing the iptables rules via webmin?
-
07-11-2009, 01:03 PM #6Intangible Asset Appraiser
- Join Date
- Mar 2009
- Location
- Austin Tx
- Posts
- 2,007
Sure....Networking > Linux Firewall
You can either fix it there, or just reset and "do over" from CLI.This is the best signature in the world....Tribute!
(It is not the best signature in the world, no. This is just a tribute)
-
07-11-2009, 01:11 PM #7Disabled
- Join Date
- Mar 2009
- Location
- Israel
- Posts
- 1,212
can you access the /var/log/secure files and show us the errors regarding SSHD service?
-
07-11-2009, 01:19 PM #8Web Hosting Master
- Join Date
- May 2007
- Posts
- 2,042
-
07-11-2009, 01:22 PM #9Web Hosting Master
- Join Date
- May 2007
- Posts
- 2,042
-
07-11-2009, 01:25 PM #10Intangible Asset Appraiser
- Join Date
- Mar 2009
- Location
- Austin Tx
- Posts
- 2,007
Just hit "reset firewall", that will flush all your rules (clear iptables).
if you didn't do a save after the change, you can also just reboot your VPS, if you have some method to do that supplied by your host.
Or send a ticket to have them reboot.This is the best signature in the world....Tribute!
(It is not the best signature in the world, no. This is just a tribute)
-
07-11-2009, 01:29 PM #11Web Hosting Master
- Join Date
- May 2007
- Posts
- 2,042
-
07-11-2009, 01:41 PM #12Intangible Asset Appraiser
- Join Date
- Mar 2009
- Location
- Austin Tx
- Posts
- 2,007
Everyone answering....it looks like he just did a bad rule and locked himself out of SSHd.
Can change easily through webmin under firewall.
Logs really aren't going to help if that is the case. And the service would still be running....
Pretty sure he just needs to clear the bad rule or dump all the rules and do it again.This is the best signature in the world....Tribute!
(It is not the best signature in the world, no. This is just a tribute)
-
07-11-2009, 01:44 PM #13Web Hosting Master
- Join Date
- May 2007
- Posts
- 2,042
-
07-11-2009, 01:50 PM #14Intangible Asset Appraiser
- Join Date
- Mar 2009
- Location
- Austin Tx
- Posts
- 2,007
If you didn't save the rule afterwards, the quickest way is to just have the server rebooted, you'll find yourself back to business as usual.
But yes, it would alter your VPN, didn't know you had that running.
So alternately, just look through the rules in your webmin firewall section, and simply delete anything involving port 25. Or just fix the rule you put there in the first place, either will work.This is the best signature in the world....Tribute!
(It is not the best signature in the world, no. This is just a tribute)
-
07-11-2009, 01:53 PM #15Web Hosting Master
- Join Date
- May 2007
- Posts
- 2,042
Would it be safe to uploade a screenshot of the firewalls rules of webmin?
-
07-11-2009, 02:04 PM #16Junior Guru Wannabe
- Join Date
- May 2009
- Posts
- 48
i think that denyhosts caused the problem. if webmin has the option to edit /etc/hosts.deny just remove your ip.
-
07-11-2009, 02:07 PM #17Intangible Asset Appraiser
- Join Date
- Mar 2009
- Location
- Austin Tx
- Posts
- 2,007
I don't think he has that running. He was altering a firewall rule when this happened, from what I gather.
This is the best signature in the world....Tribute!
(It is not the best signature in the world, no. This is just a tribute)
-
07-11-2009, 05:41 PM #18Web Hosting Master
- Join Date
- May 2007
- Posts
- 2,042
update: tried stoping and starting ssh..I could stop ssh server from webmin ( same problem prevails) but when I try to start it it displays:
Failed to start SSH server : Starting sshd: PRNG is not seeded
[FAILED]
-
07-11-2009, 05:49 PM #19Intangible Asset Appraiser
- Join Date
- Mar 2009
- Location
- Austin Tx
- Posts
- 2,007
-
07-11-2009, 05:54 PM #20Web Hosting Master
- Join Date
- May 2007
- Posts
- 2,042
mapper, net and pts.. inside mapper I do have one called tun ( which I guess is something of tun tap)..
I requested ( before I saw your post ) the guys from vaserv to reestablish my ssh server without touching iptables
-
07-12-2009, 02:41 AM #21Web Hosting Master
- Join Date
- May 2007
- Posts
- 2,042
server is not pingable
Similar Threads
-
FTP - Connection closed by remote host.
By optimumd in forum Hosting Security and TechnologyReplies: 7Last Post: 11-28-2006, 09:35 PM -
Connection terminates unexpectedly
By jmaskell in forum Hosting Security and TechnologyReplies: 2Last Post: 05-31-2005, 05:33 AM -
connection to remote host closed
By deadlydog in forum Hosting Security and TechnologyReplies: 3Last Post: 04-27-2005, 08:56 PM -
connection to remote host closed
By jireh in forum Hosting Security and TechnologyReplies: 9Last Post: 05-06-2004, 06:09 PM -
RNDC Connection closed...what is the problem?
By WCHost in forum Hosting Security and TechnologyReplies: 2Last Post: 11-13-2003, 04:17 AM