通过命令行/批处理文件登录 Azure FTP 失败 [英] Azure FTP login via command line / batch file fails
问题描述
我正在尝试通过 FTP 连接到 Azure Web 应用程序.我下载了发布配置文件并将登录信息复制到我的 FTP 客户端,并且可以成功连接.但是当我从 Windows 使用 ftp.exe
时,我无法使用相同的凭据连接到同一主机.
我已阅读
如果你在调试模式下运行ftp
(-d
开关),你会看到它被截断了密码为 32 个字符.这就是连接失败的原因.
尝试使用较短的密码.否则你将不得不使用另一个命令行 FTP 客户端.
I am trying to connect by FTP to an Azure Web App. I downloaded the publish profile and copied the login to my FTP client and can connect successfully. But when i use ftp.exe
from Windows then i am not able to connect to the same host with the same credentials.
I have read Connecting to Azure website via FTP but those solutions do not fix my problem.
This is the output:
C:Projects>ftp
ftp> open waws-prod-am2-201.ftp.azurewebsites.windows.net
Connected to waws-prod-am2-201.drip.azurewebsites.windows.net.
220 Microsoft FTP
Service 200 OPTS UTF8 command successful - UTF8 encoding now ON.
User (waws-prod-am2-201.drip.azurewebsites.windows.net:(none)): firstserver$firstserver
331 Password required
Password:
530 User cannot log in.
Login failed.
Invalid command.
Also tried with username firstserver
from the Windows command prompt, no difference. Do not forget: when logging in via commercial FTP client software I CAN login successfully.
I tried backslashing the backslash and/or the dollar sign, but nothing helps. What is going wrong, how do i login from the command prompt using the Windows default ftp.exe
?
If you run ftp
in debug mode (-d
switch), you will see that it truncates the password to 32 characters. That's why the connection fails.
Try using a shorter password. Otherwise you will have to use another command-line FTP client.
这篇关于通过命令行/批处理文件登录 Azure FTP 失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!