Re: ftp assistance requested
From: Mr. Johan Andersson (johan_at_solace.mh.se)
Date: 03/03/04
- Next message: Paul Eggert: "Re: sort getting confused"
- Previous message: Mr. Johan Andersson: "Re: File permissions - HELP"
- In reply to: Ed Stevens: "ftp assistance requested"
- Next in thread: Ed Stevens: "Re: ftp assistance requested"
- Reply: Ed Stevens: "Re: ftp assistance requested"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Next message: Paul Eggert: "Re: sort getting confused"
- Previous message: Mr. Johan Andersson: "Re: File permissions - HELP"
- In reply to: Ed Stevens: "ftp assistance requested"
- Next in thread: Ed Stevens: "Re: ftp assistance requested"
- Reply: Ed Stevens: "Re: ftp assistance requested"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|