在SVN服务器上使用多个帐户

发布于 2024-08-21 09:06:51 字数 164 浏览 3 评论 0原文

现在,我在同一个 SVN 服务器上有两个不同的帐户。 Subversion 会保存最后一个用户的密码,但似乎忘记了另一个用户的密码。

问题是每次从一个项目切换到另一个项目时我都需要验证自己的身份。 有办法避免这种情况吗?

顺便说一句,我在 Linux 上使用默认的 svn 客户端。

Right now, I have two different accounts on the same SVN server.
Subversion saves the password for the last user, but seems to forget about the other one.

The problem is that I need to authentificate myself everytime I switch from one project to another.
Is there a way to avoid this?

By the way, I'm using the default svn client on linux.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

天煞孤星 2024-08-28 09:06:51

我从未尝试过此操作,但是为同一服务器使用两个不同的别名/主机名怎么样?

我想 SVN 客户端会存储不同的凭据,因为它认为它正在与不同的服务器通信。

您必须在 DNS 或本地主机配置中进行设置。我现在想不出任何副作用,除非您必须在存储库内使用服务器名称(例如与外部)。

I've never tried this, but how about using two different aliases/host names for the same server?

I imagine the SVN client would store different credentials because it thinks it's talking to a different server.

You'd have to set this up in your DNS or local hosts configuration. I can't think of any side effects right now, except in cases where you have to use a server name within the repository (e.g. with externals).

所谓喜欢 2024-08-28 09:06:51

唔。我认为(没有尝试过)你需要在 svn 服务器中使用不同的领域。

请参阅客户端凭据缓存 在红皮书中。它表示您将拥有多个缓存文件 - 每个用户 1 个。

Hmm. I think (not tried it) that you need to use different realms in your svn server.

See client Credentials Caching in the redbook. It says you'll have several cache files - 1 for each user.

滥情稳全场 2024-08-28 09:06:51

您的 SVN 服务器是否提供通过不同传输方式的访问?

例如,在我们的环境中,我们通常使用 svn+ssh,并且能够以如下方式指定不同的用户:

svn co svn+ssh://userid@server/project/...

Does your SVN server offer access via different transports?

E.g. in our environments we commonly use svn+ssh and are able to specify different users in a way like this:

svn co svn+ssh://userid@server/project/...
记忆里有你的影子 2024-08-28 09:06:51

您可以设置第二个 $HOME/.subversion 配置目录,并且:

svn --username secondary_user --config-dir secondary_dir cmd ...

You can set up a second $HOME/.subversion config directory, and:

svn --username second_user --config-dir second_dir cmd ...

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文