1
votes

I can connect successfully to my ftp server from cmd but when i execute the .bat script to connect to ftp server it gives me:

503 Login authentication failed identification failure.

I'm sure my password and username are correct so could be any other reason that gives that error? My .bat script is:

ftp -s:ftp.txt

And my ftp.txt file is:

open ftpserver
username  
password
cd C:\backups
lcd C:\backups
put C:\backups\bk.backup 
bye

Thanks in advance:)

1

1 Answers

2
votes

Your username or password may have spaces after it.

The problem from your script is the authentication - that's the first three lines of the txt file.