I am using Python 2.7 in the ubuntu 11.10 distribution.
I have a problem with ftplib module and FTP_TLS connection. There is vsftp on my ftp server
When I try to connect, I get this error:
ftplib.error_perm: 530 Log in using USER and PASS.
This is my code:
from ftplib import FTP_TLS
ftp = FTP_TLS( '192.168.1.5' )
ftp.login( 'user' , 'password')
ftp.close()
Anyway, if I use a simple FTP connection, ftp = FTP ('192.168.1.5'), it works!
But I need an FTP_TLS connection. I also tried to insert param ftp.auth () and ftp.prot_p (), but nothing happens.
source
share