Unable to connect to redhat 5 server using ssh, ftp.
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Unable to connect to redhat 5 server using ssh, ftp.
Hello All,
We are facing one issue;
Our server is located in middle east and we are accessing it here remotely.
We use SSH or VNC to connect to that server.
The problem which we are facing is ;
When we try to connect to the server using SSH we are getting following error:
Server responded "Connection closed"
The connection to the remote host was lost.This ususally means that network connection has terminated or that the remote host computer was rebooted. Most network outages are short, so trying again may help.
We are able to ping that server but we are not able to login using SSH.
Also we have enabled the vsftpd on that server but even ftp is not working for us.
If there's a problem with using more than one service (ssh, ftp) it seems like an issue with routing. You can ping it ok, but possibly the ports are no longer forwarded on router/gateway.... (Obviously if someone has physical access to that server they can check if it's possible to ftp or ssh to localhost to find out if the deamons are working ok.) That's my guess.
If it is possible in your configuration try
service iptables stop
service sshd restart
This will turn off the firewall in the system and restart the sshd daemon.
If it works after this then you will need to add rules to iptables if you intend on using the internal firewall.
If you havn't yet, try rebooting the server. If the server was running out of memory, it will start to shut down high memory-usage services to make more memory available. Generally SSH and FTP are not going to be that high of memory usage unless an open connection got frozen in a loop of some sort typically. Rebooting the server will reset everything to it's normal running status. If you still can not access the server through SSH/FTP, you will need to contact your server provider as the server will most likely need to have someone physically access the console to determine why the connections are being refused as it is likely something you won't be able to fix if you have no remote access.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.