SVN报错authorization failed: Could not authenticate to server: rejected Basic challenge

The error you get means that SVN server (Apache HTTP Server actually) rejects to authenticate you because of invalid credentials. Here are the steps to troubleshoot the error:

  • Do you get the password prompt? Do you get the password prompt 3 times in a row and then see this error?

    If you do: the first troubleshooting step would be to double-check that the entered username and password are correct. Usernames can be case-sensitive!

    The second troubleshooting steps is not so obvious; you can encounter it after changing your AD account's password. Basic authentication fails when password contains non-ASCII symbols (e.g. £, ü, ä etc.). Shortly speaking Basic auth does not support non-ASCII characters in password.

  • You don't get password prompt, it just fails with the error authorization failed: Could not authenticate to server: rejected Basic challenge.

    It makes sense to attempt to authenticate forcing your credentials, e.g. with the command-line:

    svn info --username USERNAME --password PASSWORD --no-auth-cache https://server/svn/repository/

    --username ARG : specify a username ARG

    --password ARG : specify a password ARG

    --no-auth-cache : do not cache authentication tokens

    If you can authenticate with this command-line then you should clear your cached credentials. See SVNBook | Client Credentials for details. However some GUI clients allow you to clear cache in a couple of clicks.


参考链接http://stackoverflow.com/questions/10440685/what-is-the-cause-and-solution-to-svn-could-not-authenticate-to-server-rejecte


全局选项: 

  --username ARG           : 指定用户名称 ARG

  --password ARG           : 指定密码 ARG

  --no-auth-cache          : 不要缓存用户认证令牌

  --non-interactive        : 不要交互提示

  --trust-server-cert      : 不提示的接受未知的 SSL 服务器证书(只用于选项 “--non-interactive”)

  --config-dir ARG         : 从目录 ARG 读取用户配置文件

  --config-option ARG      : 以下属格式设置用户配置选项:

                                 FILE:SECTION:OPTION=[VALUE]

                             例如:

                                 servers:global:http-library=serf


  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值