Authentication Winscp:webdav连接失败:身份验证失败。拒绝基本挑战

Authentication Winscp:webdav连接失败:身份验证失败。拒绝基本挑战,authentication,webdav,winscp,Authentication,Webdav,Winscp,我设置了一个脚本来连接webdav服务器 我使用以下参数运行winscp: "C:\Program Files (x86)\WinSCP\winscp.com" /script=script.txt /log=winscp.log /ini=nul 然后,脚本是: open davs://user@company.com:password@querty.sandbox.company.com/in/my.servlet/webdav/Catalogs/company/ s

我设置了一个脚本来连接webdav服务器

我使用以下参数运行winscp:

"C:\Program Files (x86)\WinSCP\winscp.com" /script=script.txt /log=winscp.log /ini=nul 
然后,脚本是:

open davs://user@company.com:password@querty.sandbox.company.com/in/my.servlet/webdav/Catalogs/company/
synchronize remote -mirror D:\winscptest\files\ /in/my.servlet/webdav/Catalogs/company/
close
exit
运行该命令时,身份验证失败,输出如下:

Connecting to host...
Authenticating...
Access denied.
Authentication failed.
Could not authenticate to server: rejected Basic challenge
Connection failed.
如果我在winscp(使用GUI)中配置连接,一切正常

有人能帮我正确配置脚本吗


谢谢你的关注

我联系了webdav服务器的管理员,查看他们这边的日志,他注意到该帐户被阻止,可能是多次尝试使用错误的密码

然后我知道用户名和密码必须是url编码才能在脚本中使用

@MartinPrikryl与winscp合作得很好,我喜欢

再见