Search code examples
python-3.xftplib

ftplib python - returning error that login or password is incorrect


I am trying to use the python library "ftplib". I am able to connect to the FTP server on my MacBook just fine, using the finder settings under "Go --> Connect to Server..."

When I use ftplib in a jupyter notebook it is returning the error message:

error_perm: 530 Login or password incorrect!

Here is my code:

from ftplib import FTP
ftp = FTP(host='ipaddress', user='myusername', passwd='mypassword')

where host is the ip address of the FTP server and user is my username and passwd is the password I was given. Thank you for any help.


Solution

  • I have solved the issue. I was not on the "user list" for the server. I was able to login through my finder on Mac but Filezilla did not let me connect through python until I was added to the server user list. Bush league by our tech department, they could use an injection of talent over there.