Re: ftp assistance requested

From: Mr. Johan Andersson (johan_at_solace.mh.se)
Date: 03/03/04


Date: Wed, 3 Mar 2004 09:52:16 +0100


On Tue, 2 Mar 2004, Ed Stevens wrote:

> Platform:
>
> $ uname -a
> SunOS <server name> 5.9 Generic_112233-11 sun4u sparc SUNW,UltraAX-i2
>
> I have been tasked with creating some scripts to ftp files to various
> vendors with which our client does business. At first cut, this bit
> of code seemed to be working:
>
> ftp -n -v ${FTP_SVR} <<EOF >>$TRACE 2>>$TRACE
> user ${FTP_USER} ${FTP_PSWD}
> cd ${FTP_TARGET_DIR}
> lcd ${FTP_SOURCE_DIR}
> prompt
> binary
> bye
> EOF
>
> But then one particular vendor generates this:
>
> Connected to <server name>
> 220 Check Point FireWall-1 Secure FTP server running on <netname>
> 421 Service not available, remote server has closed connection
>
> The vendor has been no help. We did determine that if we remove the
> -n switch we don't get the 421 msg, but then we get an interactive
> prompt for userid and password. In that test, our .netrc file looks
> like this (I've obviously hidden the critical values)
>
> machine vendor.ftpsrvr.com login myuserid password mypswd
>
> and the script looks like this:
>
> ftp -v ${FTP_SVR} <<EOF >>$TRACE 2>>$TRACE
> cd ${FTP_TARGET_DIR}
> lcd ${FTP_SOURCE_DIR}
> prompt
> binary
> bye
> EOF
>
> Any comments, suggestions, ideas are appreciated. I'm not a unix
> guru, but am as close as they have at this site.

Sounds to me like the site closed normal ftp and opened secure ftp, i.e.
sftp only. If so, they wont let you in with the ftp client, you would need
to use scp or sftp from the ssh packages.

Good move by them actually.

/Johan A



Relevant Pages

  • ftp assistance requested
    ... I have been tasked with creating some scripts to ftp files to various ... 220 Check Point FireWall-1 Secure FTP server running on ... The vendor has been no help. ...
    (comp.unix.solaris)
  • Re: Automating FTP file transfers
    ... Thanks very much for the help guys I now know how to connect using python ... ftp library and I am happy with this but... ... Just wondering about the bigger picture with regards to sys admin scripts, ... > and its FTP libraries rather than executing native OS commands in a shell ...
    (comp.lang.python)
  • FTP in gawk
    ... I am building a suite of awk scripts to support a website CMS (content ... gawk that is probably not best done in gawk;-) ... Below is an implementation of FTP in gawk (implementing just "put" not ... BINMODE, it wasn't supposed to be used this way, but it works (although ...
    (comp.lang.awk)
  • FTP in gawk
    ... I am building a suite of awk scripts to support a website CMS (content ... gawk that is probably not best done in gawk;-) ... Below is an implementation of FTP in gawk (implementing just "put" not ... BINMODE, it wasn't supposed to be used this way, but it works (although ...
    (comp.lang.awk)
  • Re: CARP and em0 timeout watchdog
    ... >>> such behavioral differences between scp and ftp? ... With a very fast processor and on a gigE network ... vendor = 'Intel Corporation' ... subclass = ethernet ...
    (freebsd-stable)

Quantcast