Expiring Today—Celebrate National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Command Line FTP Not Working

Posted on 2009-05-09
5
Medium Priority
?
654 Views
Last Modified: 2013-12-16
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
Comment
Question by:Darrennew
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
5 Comments
 

Expert Comment

by:tuanle55
ID: 24345337
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
 
LVL 1

Author Comment

by:Darrennew
ID: 24345486
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
 
LVL 5

Expert Comment

by:0ren
ID: 24345689
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
 
LVL 5

Expert Comment

by:0ren
ID: 24345735
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
 
LVL 1

Accepted Solution

by:
Darrennew earned 0 total points
ID: 24345821
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

Get your Conversational Ransomware Defense e‑book

This e-book gives you an insight into the ransomware threat and reviews the fundamentals of top-notch ransomware preparedness and recovery. To help you protect yourself and your organization. The initial infection may be inevitable, so the best protection is to be fully prepared.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Using 'screen' for session sharing, The Simple Edition Step 1: user starts session with command: screen Step 2: other user (logged in with same user account) connects with command: screen -x Done. Both users are connected to the same CLI sessio…
Introduction We as admins face situation where we need to redirect websites to another. This may be required as a part of an upgrade keeping the old URL but website should be served from new URL. This document would brief you on different ways ca…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.
Suggested Courses

730 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question