Package: ftp-ssl
Version: 0.17.12+0.2-6

When the ftp command supplied in the ftp-ssl package
is invoked with both the "-n" and the "-z secure"
switches, the "-z secure" switch has no effect.  The
"AUTH SSL" command is not sent to the remote server
and no SSL negotiation takes place.  Use of the "-n"
switch is essential if one wishes to use standard
input redirection  to supply the "user" command, WITH
A PASSWORD, in a file.  Use of the "-z secure" option
is essential to connect with a server which requires
an SSL-secured connection.  Since the two options do
not work together, it is impossible to write a script
to automate file transfers using this client when
connecting to a secure server.

Here's an example.  The file "test.ftp" contains the
following lines:

open my.mouse.hole 991
user mouse cheese
dir
close
quit

If the following command is issued:

ftp -pinegvdz secure < test.ftp

the following output is received:

Connected to my.mouse.hole.
220-Glub Tech Secure FTP Wrapper (v2.5.7)
220 my.mouse.hole FTP server (Version wu-2.6.2(1) Mon
Aug 16 17:10:57 IDT 2004) ready.
ftp: setsockopt: Bad file descriptor
---> SYST
530 Please login with USER and PASS.
---> USER mouse
503 Login with AUTH SSL/TLS first.
Login failed.
ftp: setsockopt (ignored): Permission denied
---> PASV
530 Please login with USER and PASS.
Passive mode refused.
---> QUIT
221 Goodbye.

If you leave off "-z secure" and connect to a
non-secure ftp server, this technique works fine.  For
example:

ftp -pinegvd < test.ftp

produces the following output:

Connected to my.mouse.hole.
220-FTPSERVE IBM VM Level 510 at MY.mouse.hole,
12:01:15 EST FRIDAY 2007-11-09
220 Connection will close if idle for more than 5
minues
ftp: setsockopt: Bad file descriptor
---> SYST
215-z/VM Version 5 Release 2.0, service level 0701
(64-bit)
    VM/CMS Level 22, Service Level 701
215 VM is the operating system of this server.
Remote system type is VM.
---> USER mouse
331 Send password please.
---> PASS XXXX
230-MOUSE logged in; working directory = MOUSE 191
(ReadOnly)
230 write access currently unavailable
---> SYST
215-z/VM Version 5 Release 2.0, service level 0701
(64-bit)
    VM/CMS Level 22, Service Level 701
215 VM is the operating system of this server.
Remote system type is VM.
---> PASV
227 Data transfer will passively listen to
nnn,nnn,nnn,nnn,4,5
---> LIST
125 List started OK
PROFILE  EXEC     V         70          9          1
2007-09-27 16:25:15 SMP191
250 List completed successfully.
---> QUIT
221 Quit command received. Goodbye.

I am using Debian GNU/Linux 4.0r1 (etch1) with Linux
kernel 2.6.18

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to