LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Unable to connect to redhat 5 server using ssh, ftp. (https://www.linuxquestions.org/questions/linux-newbie-8/unable-to-connect-to-redhat-5-server-using-ssh-ftp-710662/)

Avadhut 03-10-2009 11:51 PM

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.

Its urgent.

Any comments ?

Thanks in advance.


vkmgeek 03-11-2009 03:00 AM

try other than root login
looks like some firewall/security reasons with ftp

Avadhut 03-11-2009 07:06 AM

Thanks for the reply !!

I tried to login through some different user, but still we are getting the same error.

Please suggest.. which files we should check for troubleshooting.

Regards,
Avadhut

cyprinidae 03-11-2009 08:10 AM

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.

battletroll 03-11-2009 09:31 AM

Firewall
 
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.

desertwebdesigns 03-11-2009 10:44 AM

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.

Avadhut 03-12-2009 12:18 AM


Hello All,

Thanks for your updates.

The issue is resolved and we are able to login through SSH.

The root cause behind this issue was there was some change in network settings which happened last sunday.

Thanks again!!

Regards,
Avadhut



All times are GMT -5. The time now is 09:49 AM.