Unable to access Ubuntu EC2 ssh, Connection to Server-IP Closed

My server was having error due to high traffic and it showed this message often when I access the website

Error: EMFILE: too many open files, open '/home/ubuntu/chat2/public/style.css'     at Error (native) 

To fix this, I googled and tried to increase the Ulimit in Ubuntu.

Recently I changed the following files

sysctl.conf  

as I followed this tutorial http://ithubinfo.blogspot.in/2013/07/how-to-increase-ulimit-open-file-and.html

and also changed

/etc/security/limits.conf 

After I did that, I logged out of my ssh and then tried logging in and since then I am unable to get in.

It logs in and then tell me that Connection to (server ip) closed.

See Unable to access Ubuntu EC2 ssh, Connection to Server-IP Closed

How can I get access to my terminal back and/or restore my limits.conf and sysctl.conf ?

UPDATE:

i tried accessing it via FTP File zilla and it gives error "Unexpected end of file SFTP". Unable to access Ubuntu EC2 ssh, Connection to Server-IP Closed

How do I edit those files again without terminal access?

Replay

Category: ubuntu Time: 2016-07-28 Views: 0

Related post

iOS development

Android development

Python development

JAVA development

Development language

PHP development

Ruby development

search

Front-end development

Database

development tools

Open Platform

Javascript development

.NET development

cloud computing

server

Copyright (C) avrocks.com, All Rights Reserved.

processed in 0.218 (s). 12 q(s)