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?
Printable View
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?
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?
Moved > VPS Forum.
Is there enought space left on the vps hdd?
Have your tried flushing the iptables rules via webmin?
Sure....Networking > Linux Firewall
You can either fix it there, or just reset and "do over" from CLI.
can you access the /var/log/secure files and show us the errors regarding SSHD service?
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.
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.
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.
Would it be safe to uploade a screenshot of the firewalls rules of webmin?
i think that denyhosts caused the problem. if webmin has the option to edit /etc/hosts.deny just remove your ip.
I don't think he has that running. He was altering a firewall rule when this happened, from what I gather.
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]
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
server is not pingable