在Mac OS X 10.4上安装SVN并使用svn + ssh://URL访问 [英] Installing SVN on Mac OS X 10.4 and accessing it using svn+ssh:// URL

查看:302
本文介绍了在Mac OS X 10.4上安装SVN并使用svn + ssh://URL访问的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在运行Mac OSX 10.4的网络计算机上设置SVN存储库.我从 HERE 下载并安装了Subversion.

I wanted to setup SVN repository on a network machine running Mac OSX 10.4. I downloaded and installed subversion from HERE.

我安装了该软件包,并且为了从每个目录中调用Subversion命令,我遵循以下说明:

I installed the package, and in order to call the Subversion commands from every directory, i followed the following instructions:

  1. 打开终端.
  2. 输入以下命令.

  1. Open Terminal.
  2. Enter following command.

$ pico .bash_profile

将以下行添加到文本文件:

Add the following line to the text file:

export PATH=/opt/subversion/bin/:$PATH"

现在点击Control-X,然后确认以'y'保存文件,然后返回.

Now hit Control-X, then confirm saving the file with 'y', followed by return.

在此之后,我能够在远程计算机上成功创建svn存储库.现在,我想使用Xcode访问该存储库.但是我认为我缺少了一些东西,因为我无法使用"svn + ssh://..." URL访问存储库.有很多在线文章谈论svnserve和ssh,但我不明白.如果有人可以向我解释我所缺少的内容以及其背后的逻辑,我将不胜感激.

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.

在Mac OS X 10.5.x中,已经设置了SVN环境,因此可以使用"svn + ssh://..." URL访问SVN存储库.但是我想在我的SVN存储库中使用运行Mac OS X 10.4.x的远程计算机,这就是我遇到的问题.

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.我是SVN,SSH,SCM的新手

p.s. I'm new to this SVN, SSH, SCM stuff

推荐答案

我怀疑您已经完成了授权多用户访问存储库的步骤.由于预配置的svn + ssh已成为Mac OS X上最近两个主要OS版本的默认设置,因此找到像样的文档并不是那么容易,而是

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.

最主要的是,您需要收集将要访问存储库的每个人(可能只有您)的公钥,并将他们的用户名和公钥添加到authorized_keys文件中.

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.

这篇关于在Mac OS X 10.4上安装SVN并使用svn + ssh://URL访问的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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