LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 02-08-2007, 12:24 PM   #1
chris
Member
 
Registered: Nov 2001
Location: Toronto, Canada
Distribution: CentOS 4
Posts: 66

Rep: Reputation: 15
FTP Issues


Again a weird one, or at least it appears as such to me at the moment. I'm logged on to my xp desktop as I usually am and I'm ssh'd to 2 boxes, to my hosted dedicated server and my linux box at home. I have never had any issues ftp'ing from my dedicated server to my linux box at home until now. I have not made any changes what so ever so this is why I find this strange. when I try to ftp from dedicated server to my linux box at home.. it just times out. if I try to ftp from my xp command prompt to my home server, it works fine! I'm not sure where the problem is and could use some tips from anyone.

thanks!

Chris
 
Old 02-08-2007, 01:33 PM   #2
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831
Blog Entries: 15

Rep: Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669
You're ssh'd in to your Linux box at home from the dedicated server or from the same place you ssh'd into the XP box?

It may simply be you can't get to your Linux box at home from the dedicated server. Can you ping from the dedicated server to your home box? Can you trace route?

What command do you type on the dedicated server? What OS does the dedicated server have? What messages/issues do you see when you try the ftp from the dedicated server?

Note that ssh uses a completely different port than ftp. Also there are other ftp utilities that aren't really ftp (e.g. sftp - it is a file transfer using port 22 normally).

Speaking of which you really ought to disable ftp and consider using scp/sftp. ftp is very insecure. You can still do scp from your XP by downloading and using WinSCP.
 
Old 02-08-2007, 01:37 PM   #3
rahulk
Member
 
Registered: Mar 2006
Posts: 110

Rep: Reputation: 16
Quote:
Originally Posted by chris
Again a weird one, or at least it appears as such to me at the moment. I'm logged on to my xp desktop as I usually am and I'm ssh'd to 2 boxes, to my hosted dedicated server and my linux box at home. I have never had any issues ftp'ing from my dedicated server to my linux box at home until now. I have not made any changes what so ever so this is why I find this strange. when I try to ftp from dedicated server to my linux box at home.. it just times out. if I try to ftp from my xp command prompt to my home server, it works fine! I'm not sure where the problem is and could use some tips from anyone.

thanks!

Chris
It will really help if you could re-phrase your question and also your observations. Meanwhile, do a simple test:-

Ping your home server from your XP box and from the dedicated Linux server. If you are not able to ping the home Linux box from dedicated server then better check if there is any Firewall in between. However, if you are able to ping the box then it means that the Gateway (or firewall) in between the dedicated box to Linux home box must be having its port number 21 closed.

Here is another test to figure this out:-

[Dedicated machine]$ telnet <home-machine> 21

Let me know of the results you get.

Hope it helps!!
Rahul.
 
Old 02-08-2007, 01:48 PM   #4
chris
Member
 
Registered: Nov 2001
Location: Toronto, Canada
Distribution: CentOS 4
Posts: 66

Original Poster
Rep: Reputation: 15
Hi

Thanks for the reply.

I have always been able to ftp from my dedicated server (Fedora Core4) to my linux box at home running CentOS4 without issues until just today.. without my having done any changes to any services or IPtables on either boxes.

I am currently on an XP machine (where I work from sometimes) and I have established an ssh connection to my dedicated server and to my linux box at home... as usual.

from the dedicated server, I can ssh to my linux box but I cannot ftp to it as I have always been able to in the past... it just times out.

I can also ping all boxes from any which way.

to test, I tried to ftp from the xp box the my linux box and I was able to without any problems.

The problem is why am I not able to ftp from my dedicated box anymore... that is the question.

Hopefully this more clear.

Thanks
 
Old 02-08-2007, 01:58 PM   #5
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831
Blog Entries: 15

Rep: Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669
Well it answers all the questions except for what exactly is happening when you try it? What exactly are you typing when you try it?

Also the post above gave the suggestion of trying to telnet to port 21 (the one used by ftp) to see if it will open the port from the dedicated server to your home. What happens when you try that?
 
Old 02-08-2007, 02:07 PM   #6
chris
Member
 
Registered: Nov 2001
Location: Toronto, Canada
Distribution: CentOS 4
Posts: 66

Original Poster
Rep: Reputation: 15
Update

It would seem that from my dedicated server.. I can't get out anyhwere. can't ping out and no getting anywhere with traceroutes:

#traceroute mybox.homeunix.com
traceroute to mybox.homeunix.com (74.97.197.143), 30 hops max, 46 byte packets
1 * * *
2 * * *
3 * * *
4 * * *
5 * * *
6 * * *
7 * * *
8 * * *
9 * * *
10 * * *
11 * * *
12 * * *
13 * * *
14 *

now that is obviously an issue. I've since my first post flushed iptables.. would that prevent my from going out?
 
Old 02-08-2007, 04:26 PM   #7
rahulk
Member
 
Registered: Mar 2006
Posts: 110

Rep: Reputation: 16
Quote:
Originally Posted by chris
It would seem that from my dedicated server.. I can't get out anyhwere. can't ping out and no getting anywhere with traceroutes:

#traceroute mybox.homeunix.com
traceroute to mybox.homeunix.com (74.97.197.143), 30 hops max, 46 byte packets
1 * * *
2 * * *
3 * * *
4 * * *
5 * * *
6 * * *
7 * * *
8 * * *
9 * * *
10 * * *
11 * * *
12 * * *
13 * * *
14 *

now that is obviously an issue. I've since my first post flushed iptables.. would that prevent my from going out?
What are the settings which you have configured in IPtables? I would like to see them..

As you told that you are unable to ping outside world.. Try to take a look at the ARP and routing tables to figure out if any route is "complete". If not, then look at the Network interface and try to ping the gateway.
 
Old 02-08-2007, 05:31 PM   #8
chris
Member
 
Registered: Nov 2001
Location: Toronto, Canada
Distribution: CentOS 4
Posts: 66

Original Poster
Rep: Reputation: 15
Here are the are the rules based on the following command:

# iptables -L
Chain FORWARD (policy ACCEPT)
target prot opt source destination

Chain INPUT (policy ACCEPT)
target prot opt source destination

Chain OUTPUT (policy ACCEPT)
target prot opt source destination
 
Old 02-08-2007, 05:33 PM   #9
chris
Member
 
Registered: Nov 2001
Location: Toronto, Canada
Distribution: CentOS 4
Posts: 66

Original Poster
Rep: Reputation: 15
this is my route output:

# route
Kernel IP Routentabelle
Ziel Router Genmask Flags Metric Ref Use Iface
10.255.255.1 * 255.255.255.255 UH 0 0 0 eth0
169.254.0.0 * 255.255.0.0 U 0 0 0 eth0
default 10.255.255.1 0.0.0.0 UG 0 0 0 eth0
 
Old 02-08-2007, 05:43 PM   #10
chris
Member
 
Registered: Nov 2001
Location: Toronto, Canada
Distribution: CentOS 4
Posts: 66

Original Poster
Rep: Reputation: 15
Arp

arp output:

# arp
Address HWtype HWaddress Flags Mask Iface
10.255.255.1 ether 00:00:0C:07:AC:00 C eth0

I still can't ping my gateway 10.255.255.1 for reasons unknown to me...
 
  


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
FTP issues vswr31 Programming 7 10-16-2006 09:10 PM
ftp issues pumplove Linux - Networking 2 06-06-2006 11:23 PM
FTP issues colabus Debian 0 12-12-2004 10:46 PM
FTP issues dpp777 Linux - Networking 4 07-21-2004 10:46 AM
FTP Login issues artman62 Linux - Networking 1 04-01-2004 11:55 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:37 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