Subversion 要求输入不正确的用户 [英] Subversion asks for incorrect user

查看:29
本文介绍了Subversion 要求输入不正确的用户的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们的系统小组给了我一个闪亮的全新 Debian 服务器,并且/etc 目录由 Subversion 进行版本控制.不幸的是,我似乎无法保存一些配置更改;Subversion 一直问我设置盒子的先生们的密码,他们今天晚上 6 点正在休假:

I just got a shiny, brand-new Debian server handed to me by our Systems group, and the /etc directory is kept under version control with Subversion. Unfortunately, I couldn't seem to save some configuration changes; Subversion kept asking me for the password of the gentlemen who set the box up and who is on vacation as of 6 pm this evening:

djessup@server1:/etc$ sudo svn commit -m "Made some changes."
jdoe@svn.example.root.ent's password: 

我在以我自己的身份检出更改时没有这个问题,只有在使用 sudo 以 root 身份提交更改时才出现.

I did not have this problem when checking out changes as myself, only when using sudo to commit changes as root.

我的第一个想法是有人检查了嵌入用户名的工作目录,但是 svn info 显示 Subversion 存储库的位置是 svn+ssh://svn.example.root.ent/svn/its-systems/server1,不是 svn+ssh://jdoe@svn.example.root.ent/svn/its-systems/server1.

My first thought was that somebody had checked out the working directory with a username embedded, but svn info revealed that the location of the Subversion repository was svn+ssh://svn.example.root.ent/svn/its-systems/server1, not svn+ssh://jdoe@svn.example.root.ent/svn/its-systems/server1.

我尝试使用记录在 官方 Subversion 用户指南.它完全无效;John Doe 的用户名(为了保护无辜者而更改了实际名称)不断出现.我在/root/.subversion 中寻找了一些可能的错误配置.那里的配置为零.

I tried using the --username command documented on the official Subversion user guide. It was completely ineffective; John Doe's username (actual name changed to protect the innocent) kept coming up. I looked for some possible misconfiguration in /root/.subversion. There was zero configuration there.

推荐答案

正如您可能对时间戳所期望的那样,我在已经有了答案之后才提出这个问题.这个问题非常痛苦,我希望它的解决方案广泛传播,这样其他人就不必走我所做的所有死胡同.

As you might expect from the timestamps, I asked this question after I already had an answer. This problem was sufficiently painful that I want its solution spread far and wide so that other people don't have to go down all the dead ends I did.

在谷歌上搜索了几次,终于找到了Hardy Ferentschik 的精彩博文 解释了这个问题.事实证明,问题不在于 Subversion,而在于我用来访问 Subversion 的 SSH 协议.当我打开/root/.ssh/config 时,我发现了以下文本:

After several searches on Google, I finally found Hardy Ferentschik's wonderful blog entry explaining this problem. It turns out that the problem was not with Subversion, but with the SSH protocol I was using to access subversion. When I opened up /root/.ssh/config, I found the following text:

Host svn.example.root.ent
        User jdoe

我在这个配置文件中用我的用户名替换了 jdoe,一切正常.

I replaced jdoe with my username in this configuration file, and everything worked.

这篇关于Subversion 要求输入不正确的用户的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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