from ftplib import FTP ftp = FTP() ftp.connect("127.0.0.1", 2121) ftp.login("John", "P4ssword!") print("Connecté au serveur.") ftp.quit()