是什么原因和解决方案,以SVN:无法验证服务器:驳回基本挑战是什么? [英] What is the cause and solution to SVN: Could not authenticate to server: rejected Basic challenge?

查看:4079
本文介绍了是什么原因和解决方案,以SVN:无法验证服务器:驳回基本挑战是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果您在网络,你会看到周围寻找这个问题问了很多,但没有明确的答案。这里是我的具体情况。

我使用一个Mac版SVN客户端,但使用命令行,当我得到了同样的问题。我个人回购凭据别人的回购,这是我的工作在一台机器上,我3个月前对其进行设置。

我复制我的.ssh文件夹从我的用户目录,以不同的机器,安装版本的机器上,并通过登录凭据成立,只有它与以下消息失败:


  

授权失败:无法验证服务器:基本否决
  挑战


有关回购的URL是使用https,但我删除了'S',并试图非安全,同样的问题。然后,我删除了我的.ssh文件夹从我的其他电脑,同样的问题。别人说这个错误是试图使用基本身份验证(HTTP)和没有相关SVN。这对我来说并不太大的帮助,因为我不知道该怎么做来解决它。我的登录凭据都不错,但此错误消息可能是最少的描述性的和最差的书面我处理一个。我如何FID这个问题?


解决方案

 授权失败:无法验证服务器:基本否决
 挑战


您得到的错误意味着SVN服务器(Apache HTTP服务器实​​际上)拒绝,因为凭证无效的验证您的身份。下面是解决该错误的步骤:


  • 你得到的密码提示?你得到的密码提示3次在一排,然后看这个问题?

    如果你这样做:首先排除故障步骤是要仔细检查所输入的用户名和密码是否正确。用户名可以是区分大小写的!

    第二个故障排除步骤是不是因为previous一个作为明显;你可以改变你的AD帐户的密码后遇到的问题。当密码包含非ASCII符号(如£,U,A等),基本身份验证失败。不久讲基本认证不支持密码中的非ASCII字符。


  • 你没有得到密码的提示,它只是失败,授权失败的错误:无法验证服务器:驳回基本挑战

    这是有道理的,试图迫使验证您的凭据,如使用命令行:

    SVN信息--username USERNAME --password密码--no-auth的缓存https://开头的服务器/ SVN /库/


      

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


      
      

    - 密码ARG:指定密码ARG


      
      

    - 无权威性缓存:不缓存的身份验证令牌


    如果你能成功地使用此命令行进行身份验证,您应该清除缓存的凭据。见<一href=\"http://svnbook.red-bean.com/en/1.8/svn.serverconfig.netmodel.html#svn.serverconfig.netmodel.creds\"相对=nofollow> SVNBook |客户端凭证的详情。然而,一些GUI客户端允许您清除高速缓存中点几下。


If you search around the web you will see this question asked a lot but there are no clear answers. Here is my particular case.

I am using Versions SVN client on a mac but I get the same problem when using the command line. I have personal repo credentials to someone else's repo and it is working on my one machine where I set it up 6 months ago.

I copied my .ssh folder from my user directory to a different machine, installed versions on that machine, and set up by login credentials, only it is failing with the following message:

authorization failed: Could not authenticate to server: rejected Basic challenge

The URL for the repo is using https, but i removed the 's' and tried non-secure, same problem. I then deleted my .ssh folder from my other computer, same problem. Someone else said this error is related to SVN trying to use basic auth (http) and failing. This is not much help to me because I have no idea what to do to fix it. My login credentials are good, but this error message is probably one of the least descriptive and worst written that I have dealt with. How do I fid this problem??

解决方案

 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 step is not as obvious as the previous one; you can encounter the problem 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 the password.

  • You do not get the 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 successfully authenticate with this command-line, 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.

这篇关于是什么原因和解决方案,以SVN:无法验证服务器:驳回基本挑战是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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