通过命令行/批处理文件登录Azure FTP失败 [英] Azure FTP login via command line / batch file fails

查看:133
本文介绍了通过命令行/批处理文件登录Azure FTP失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试通过FTP连接到Azure Web App.我下载了发布配置文件,并将登录名复制到我的FTP客户端,并且可以成功连接.但是,当我从Windows使用ftp.exe时,则无法使用相同的凭据连接到同一主机.

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.

我已阅读通过FTP连接到Azure网站,但是这些解决方案确实可以无法解决我的问题.

I have read Connecting to Azure website via FTP but those solutions do not fix my problem.

这是输出:

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.

也尝试从Windows命令提示符下使用用户名firstserver,没有区别.不要忘记:通过商用FTP客户端软件登录时,我可以成功登录.

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.

我尝试反斜杠和/或美元符号,但是没有帮助.怎么了,我该如何使用Windows默认ftp.exe从命令提示符登录?

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?

推荐答案

如果在调试模式下运行ftp(-d开关),则会看到密码将其截断为32个字符.这就是连接失败的原因.

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.

尝试使用较短的密码.否则,您将不得不使用另一个命令行FTP客户端.

Try using a shorter password. Otherwise you will have to use another command-line FTP client.

这篇关于通过命令行/批处理文件登录Azure FTP失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆