LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 03-10-2009, 11:51 PM   #1
Avadhut
LQ Newbie
 
Registered: Mar 2009
Posts: 11

Rep: Reputation: 0
Post 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.

 
Old 03-11-2009, 03:00 AM   #2
vkmgeek
Member
 
Registered: Feb 2006
Location: Ahmedabad
Distribution: rhel5
Posts: 185
Blog Entries: 2

Rep: Reputation: 31
try other than root login
looks like some firewall/security reasons with ftp
 
Old 03-11-2009, 07:06 AM   #3
Avadhut
LQ Newbie
 
Registered: Mar 2009
Posts: 11

Original Poster
Rep: Reputation: 0
Smile

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
 
Old 03-11-2009, 08:10 AM   #4
cyprinidae
Member
 
Registered: Oct 2008
Distribution: Fedora, CentOS, Crunchbang
Posts: 46

Rep: Reputation: 16
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.
 
Old 03-11-2009, 09:31 AM   #5
battletroll
Member
 
Registered: Dec 2004
Location: Alabama
Distribution: Slackware, Solaris,Fedora, CentOS, Redhat, SGI
Posts: 65

Rep: Reputation: 18
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.
 
Old 03-11-2009, 10:44 AM   #6
desertwebdesigns
LQ Newbie
 
Registered: Mar 2009
Distribution: Ubuntu, FC7, FC10
Posts: 5

Rep: Reputation: 0
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.
 
Old 03-12-2009, 12:18 AM   #7
Avadhut
LQ Newbie
 
Registered: Mar 2009
Posts: 11

Original Poster
Rep: Reputation: 0
Thumbs up


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

 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
FC9 : SSH OK but unable to connect via FTP, VNC, etc. revof11 Linux - Networking 5 05-29-2008 11:06 AM
Unable to connect with telnet, ssh, ftp, etc... djlerman Linux - Server 1 09-05-2007 03:13 PM
SSH tunnelling to connect FTP server through a router: ports to enroute? guarriman Linux - Networking 1 05-04-2007 12:51 PM
Unable to access my ssh server and ftp server from the Internet, but smtp works foxone Linux - Networking 1 05-28-2004 05:17 PM
Suddenly unable to connect to my web server and my ftp server. HELP! Silly22 Linux - Software 4 05-23-2004 04:42 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:06 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration