[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 662
  • Last Modified:

Command Line FTP Not Working

Hi All,

I found a problem today on my cron servers running EL5 my monthly upload scripts stopped working for all FTP uploads to the live external servers.

I am run FTP commands manually today and it seems /usr/bin/ftp is not working in fact using netstat it now even leaving cron servers. I have checked every thing i can think of but it just will not open a connection live servers running proftd via inetd.

It really bugging me because i can FTP on command line through windows box and connect to our hired server but i can not connect from cron boxes at all. So i tried connecting from cron servers from FTP command to my friends servers in USA no problem worked OK am i missing some thing here can any one help me with this odd problem?

Regards

Darren
0
Darrennew
Asked:
Darrennew
  • 2
  • 2
1 Solution
 
tuanle55Commented:
Can you clarify what the "error message" is or what exactly you mean by what is not working?  Check your FW settings.  Run traceroutes and ping test from both the client and servers.  Check if IPTABLES or SELINUX is enabled.  Try rebooting y our Linux box as well.
0
 
DarrennewAuthor Commented:
HI

I get no error message just get timeout.

SE Linux is disabled all firewall is OK.

I can ftp to hired server with my windows box so the connection through my gatway firewall to hired server is fine.

I have also rebooted the box as well.

I can connect to my Friends server and uploads.google.com from the cron boxes the problem is i can't connect to the hired server from cron boxes this is what is baffling me why i can't.

surely if i can connect to another ftp server from cron servers then i should be able to connect to hired live server?

Also remembering i can also connect using ftp command from windows xp to the hired server connects on problems.

I wondering if it a ftp session probem ? unsure seems very odd don't you think

Regards

Darren
0
 
0renCommented:
are there any logs ?
try to add at the end of the crontab line "> logfile 2>&1" and check the log later ( or just check cron logs )
you should make sure all commands and paths on scripts running from crontab have full path.
0
 
0renCommented:
run the following and post the output

grep ftp /etc/services
grep ftp /etc/hosts.deny
grep ftp /etc/hosts.allow
getenforce
chkconfig --list | grep ftp

maybe it will help
0
 
DarrennewAuthor Commented:
Hi all,

Very strange but its working now what happened is i did purchase a second ip address the first ip was ending xxx.xxx.x.244 and the new on is xxx.xxx.x.24 reasons was for SSL certs i don'e if this is a problem wih 1and1 cisco firewalls? change ftp xxx.xxx.x.24 will not connect but ftp xxx.xxx.x.244 connects OK but windows of GUI FTP client can connect on any of two IPs i have never had this sort of problem before very strange!.

Thanks for all your imput  I try and issue you some All points for you input two or three minds are better than one once again many thanks


Darren
0

Featured Post

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now