Azure 网站 FTP 访问 / 530 用户无法登录

Azure web site FTP access / 530 User cannot log in

我正在尝试使用 FTP 更新 Azure 网站。过去,我可以使用 .publishsettings 文件中的凭据来完成这项工作,这已被广泛记录。今天,我不能那样做。相反,我得到一个 530 User cannot log in. - 即使我重新生成发布设置并重新下载它们,新的也会给我同样的问题。

早在 2013 年 10 月,就有一组这些,e。 G。 Windows Azure and FileZilla FTP and Trying to access FTP with deployment credentials: 530 User cannot log in, that were a service failure on the Azure side, but the dashboard at http://azure.microsoft.com/en-us/status/ 目前显示干净,所以我认为这不是同一个问题。

我不想创建新的 FTP/Git 部署用户,因为根据新旧门户,这些凭据适用于订阅中的所有站点,而我只需要该站点的凭据具体来说。

我还应该看什么?

谢谢!

我刚刚测试了我们的帐户,这里是一个例子:

FTP: ftp://waws-prod-bay-014.ftp.azurewebsites.windows.net/site/wwwroot

用户名:fake__dev\$fake__dev

密码:无

端口:21

我想确保用户名中有\。

我和微软开了个案子,来来回回测试了两件事:

  1. 有一个服务问题可能会或可能不会影响我们 - 目前尚不清楚,因为这是部分中断的边缘情况。

  2. 从 build 10130 开始,Windows 10 FTP 命令行客户端似乎存在错误,无法正确处理凭据。我没有进行网络捕获或其他任何操作;使用另一个客户端似乎可行,所以我提交了一个反馈项目并继续前进。

我最近遇到了类似的问题,当时我使用 ftp 软件(如 Filezilla)尝试使用我的自定义部署凭证访问 waws-prod-....azurewebsites.net。我可以使用发布凭据访问服务器,但不能使用我的部署凭据。

我发现 Filezilla 有时会选择 HTTP 协议,而不是 FTP。在我的例子中,这意味着 Filezilla 在我使用发布凭据时转到 ftp://waws...,但在使用部署凭据时转到 http://waws...

简单修复:始终在 url 前使用 ftp://

这是因为您正在使用的用户名和密码在连接时不会被使用。 overview.Download it.Open 中有一个 Get publish profile 选项,它用记事本或视觉 studio.There 是另一个用户 ID 和密码 given.Use。 For more info refer this official guide

当我通过 git 命令配置 git-ftp.user 设置 user_name\$user_name 时,它不起作用。

但是当我编辑 .git/config 文件时,我注意到 \ 不见了。 我把它换成双 \

整个配置文件:

[git-ftp]
    url = ftp://waws-prod-qwerty.ftp.azurewebsites.windows.net:21/site/
    password = qwerty
    user = user_name\$user_name

现在可以使用了。

当您使用应用凭据时它会起作用。 Azure 文档提到以下内容以使用用户凭据进行部署。

Note

Authenticating to an FTP/FTPS endpoint using user-level credentials requirers a username in the following format:

\

Since user-level credentials are linked to the user and not a specific resource, the username must be in this format to direct the sign-in action to the right app endpoint.

SOURCE

在我的例子中,我只是转到这个 official guide 并在“配置 user-scope 凭据”标题下,我打开了 Azure 门户选项卡并按照说明获取我的 FTP S 凭据。然后,我只需将凭据复制并粘贴到我的 FTP 客户端 (FileZilla) 就可以了。