LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 09-29-2011, 04:40 AM   #1
srinivasmmdl
Member
 
Registered: Aug 2011
Posts: 49

Rep: Reputation: Disabled
ftp: connect: Connection timed out


when i run ftp 192.168.1.144

am getting error like

ftp: connect: Connection timed out

i installed ftp using "yum install vsftpd"

and then i run "service vsftpd start" command i got message [ok]

but still am getting error ftp: connect: Connection timed out

what was the problem???
 
Old 09-29-2011, 04:53 AM   #2
snooly
Member
 
Registered: Sep 2011
Posts: 124

Rep: Reputation: Disabled
Can you login to 192.168.1.144 if you want, using ssh for example? If you can, you can try connecting to the ftp server from there, see if it works. Maybe like this, assuming your ftp server is listening on port 21.

telnet localhost 21

If that works, you can try this from another machine on that network:

telnet 192.168.1.144 21

Please try that and report what happens.
 
Old 09-29-2011, 04:59 AM   #3
srinivasmmdl
Member
 
Registered: Aug 2011
Posts: 49

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by snooly View Post
Can you login to 192.168.1.144 if you want, using ssh for example? If you can, you can try connecting to the ftp server from there, see if it works. Maybe like this, assuming your ftp server is listening on port 21.

telnet localhost 21

If that works, you can try this from another machine on that network:

telnet 192.168.1.144 21

Please try that and report what happens.
when i run telnet localhost 21 it's giving output like

Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
220 (vsFTP

and it's hanging here
 
Old 09-29-2011, 05:02 AM   #4
srinivasmmdl
Member
 
Registered: Aug 2011
Posts: 49

Original Poster
Rep: Reputation: Disabled
[QUOTE=srinivasmmdl;4485376]when i run telnet localhost 21 it's giving output like

telnet localhost 21
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
220 (vsFTPd 2.3.4)
421 Timeout.
Connection closed by foreign host.
 
Old 09-29-2011, 05:12 AM   #5
snooly
Member
 
Registered: Sep 2011
Posts: 124

Rep: Reputation: Disabled
Quote:
Originally Posted by srinivasmmdl View Post
when i run telnet localhost 21 it's giving output like

Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
220 (vsFTP

and it's hanging here
I think that's a good result, it shows you have the ftp server running and can connect to it from localhost. What happens when you try connecting from a different machine? Did you check the logfiles? Do you have a firewall?
 
Old 09-29-2011, 05:47 AM   #6
deep27ak
Senior Member
 
Registered: Aug 2011
Location: Bangalore, India
Distribution: rhel 5x,6.0,6.2, centOS 5x,6.0,6.2
Posts: 1,194
Blog Entries: 4

Rep: Reputation: 221Reputation: 221Reputation: 221
check your firewall and if possible please post your configuration file here
 
Old 09-29-2011, 06:27 AM   #7
lithos
Senior Member
 
Registered: Jan 2010
Location: SI : 45.9531, 15.4894
Distribution: CentOS, OpenNA/Trustix, testing desktop openSuse 12.1 /Cinnamon/KDE4.8
Posts: 1,144

Rep: Reputation: 217Reputation: 217Reputation: 217
Quote:
Originally Posted by deep27ak View Post
check your firewall and if possible please post your configuration file here
post your "iptables -L" output and "cat /etc/vsftpd/vsftpd.conf" file contents.

Your server seems it doesn't allow 'outside' (from other computers/ IP's) connections to your FTP server port 21.
 
  


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
ssh: connect to host port 22: Connection timed out shogun1234 Linux - Networking 1 06-21-2011 12:07 PM
ssh: connect to host XXXX port 22: Connection timed out jv2112 Linux - Newbie 3 07-04-2010 04:42 PM
Cannot connect to Suse server error connection timed out B-Boy Linux - Newbie 3 12-17-2009 11:24 AM
sendmail - Connection timed out [dsn=4.0.0 stat=Deferred: Connection timed out] ananthak Linux - Software 0 04-24-2007 07:28 AM
FTP ; connection timed out User Name. Linux - Newbie 2 01-14-2007 05:40 PM

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

All times are GMT -5. The time now is 01:58 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration