在 Mac OS X 10.4 上安装 SVN 并使用 svn+ssh:// URL 访问它
我想在运行 Mac OSX 10.4 的网络计算机上设置 SVN 存储库。我从 此处 下载并安装了 Subversion。
我安装了该软件包,为了从每个目录调用 Subversion 命令,我按照以下说明进行操作:
- 打开终端。
输入以下命令。
$ pico .bash_profile
将以下行添加到文本文件中:
export PATH=/opt/subversion/bin/:$PATH"
现在按 Control-X,然后用“y”确认保存文件,然后按回车键。
之后,我能够在远程计算机上成功创建 svn 存储库。现在我想使用 Xcode 访问该存储库。但我认为我错过了一些东西,因为我无法使用“svn+ssh://...”URL 访问存储库。网上有很多文章讲svnserve和ssh,但我不明白。如果有人能向我解释我所缺少的内容及其背后的逻辑,我将不胜感激。
在 Mac OS X 10.5.x 中,SVN 环境已设置完毕,因此可以使用“svn+ssh://...”URL 访问 SVN 存储库。但我想使用运行 Mac OS X 10.4.x 的远程计算机作为我的 SVN 存储库,这就是我陷入困境的地方。
非常感谢这方面的任何帮助。
ps 我对 SVN、SSH、SCM 很陌生
I wanted to setup SVN repository on a network machine running Mac OSX 10.4. I downloaded and installed subversion from HERE.
I installed the package, and in order to call the Subversion commands from every directory, i followed the following instructions:
- Open Terminal.
Enter following command.
$ pico .bash_profile
Add the following line to the text file:
export PATH=/opt/subversion/bin/:$PATH"
Now hit Control-X, then confirm saving the file with 'y', followed by return.
After this, i was able to successfully create an svn repository on a remote machine. Now i want to access that repository using Xcode. But i think i'm missing something because i'm unable to access the repository using "svn+ssh://..." URL. There are many online articles that talk about svnserve and ssh, but i don't get. I'll appreciate if anyone can explain to me what I'm missing, and the logic behind that.
With Mac OS X 10.5.x, the SVN environment is already setup, so the SVN repository can be accessed using "svn+ssh://..." URL. But i want to use a remote machine running Mac OS X 10.4.x for my SVN repository, and that's where I'm stuck.
Any help in this regard is greatly appreciated.
p.s. I'm new to this SVN, SSH, SCM stuff
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我怀疑您是否已完成授权多用户访问存储库的步骤。由于预配置的 svn+ssh 已成为 Mac OS X 上两个主要操作系统版本的默认设置,因此要找到像样的文档并不容易,但是 这可能会给您一些很好的指导。这是 2007 年的内容,所以可能涵盖 10.4。
最重要的是,您需要收集将访问存储库的每个人(可能只有您)的公钥,并将他们的用户名和公钥添加到authorized_keys 文件中。
I doubt that you've done the steps to authorize multiuser access to the repository. Since preconfigured svn+ssh has been the default on Mac OS X for the last two major OS versions, it's not that easy to find decent documentation, but this might give you some good pointers. It's from 2007 so probably covers 10.4.
The main thing is that you need to gather the public keys of everybody who's going to be accessing the repository (that may be just you) and add their user name and public key to the authorized_keys file.