• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
RE: XCode and subversion
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: XCode and subversion


  • Subject: RE: XCode and subversion
  • From: Nicholas Crosbie <email@hidden>
  • Date: Tue, 20 Dec 2005 11:14:08 +1100 (EST)


--- Bas Scheffers <email@hidden> wrote:

> The passphrase is to encrypt your key, it is not
> used to let you in.
> Theoreticaly, it should let you in after the
> passphrasse IF the key is
> also in authorized_keys on the server.
>
> I recommend creating a key without passphrase, then
> put the contents of
> <key>.pub in .ssh/authorized_keys on the server.
> (make sure it is owned by
> the actual user and to chmod it to 600) This works
> best if the
> "ServerUserName" is the same as the local username.


By "actual user", do you mean a user on the server or
client machine?
Currently it is set for read/write access for the
server user and
read only access for the svnusers group (the svnusers
group
was created as per the XCode manual).


> The you should be able
> to just do "ssh hostname" and be let in straight
> away. If not, check the
> server settings to see if public key logins are
> allowed.

I am able to "ssh into" the server machine using the
password for
the user on which the server resides. However, I am
never prompted for
a passphrase - which is contrary to what is implied in
the XCode
manual, i.e. from the manual......

******* step 5, "Configuring Your SSH Environment",
XCode 2.2 manual *********

Make sure you can connect to the server using your
passphrase:
% ssh email@hidden
Enter passphrase for key '/Users/ernest/.ssh/id_dsa':
Last login: Thu Sep 30 16:06:45 2004 from xx.xx.xx.xx
Welcome to Darwin!

*****************************************************************************


Although I realize that the above terminal commands
are for testing.....I assume I
don't need to "ssh into" the server via terminal prior
to starting
an XCode+subversion session. I further assume that I
don't need to have
subversion installed on the client machine; last, I
assume that I don't need
to have OS X Server or Apache installed......only
svnserve is required on
my "server" machine.

>
> Once that works without a hich, SSH in XCode should
> be a breeze.

If only it was! I think the problem is how to
correctly construct the access URL. The
XCode manual suggests:

svn+ssh://<computer_name>/<repository_root>/<project_path>

yet, XCode itself asks for the "subversion tool path",
which is "/usr/local/bin/svn"
on the server machine. I **think** the
<repository_root> is the directory containing
the "db" folder. Thus for the "Echo" example (see
XCode manual), I have the repository path
"/svnrep".

The process of importing/checking out the Echo project
from the subversion
repository (svn checkout file:///svnrep/Echo
~/src/Echo) created a "/src" folder with a "Echo"
subfolder. Does that consititute the <project_path>,
i.e. "/src/Echo"?

A more explicit example of a correctly-stated access
URL would be a great help, even
if only to elimnate the URL as the culprit.

Nick



>
> Hope that helps,
> Bas.
>
>
> Nicholas Crosbie said:
> >
> >
> > I'm trying to get XCode 2.2 to talk to a
> subversion
> > repository via a client.
> >
> > I am not a server administrator, so I'll list all
> that
> > I've done/assumed, even if
> > painfully obvious.
> >
> > 1. I opted for svnserve (cf. apache), and assumed
> that
> > only the
> > server computer requires subversion/svnserve to be
> > installed (i.e. the client
> > only needs to "ssh into" the server)
> >
> > 2. followed the XCode 2.2 documentation for
> > installing/accessing
> > subversion, creating a subversion users group,
> > changing permissions etc.
> >
> > Note that I installed a fsfs repository, i.e.
> >
> > svnadmin create --fs-type fsfs /svnrep
> >
> >
> > 3. I configured the SSH environment as per the
> XCode
> > manual; all goes
> > well until I get to step five of "Configuring Your
> SSH
> > Environment".
> >
> > I "ssh into" the server with
> >
> > %ssh <ServerUserAccount>@<ServerIPAddress>
> >
> > This prompts for a password. At this point I am
> > **unable** to login with
> > my client passphrase (which I just set up - see
> > "Configuring Your SSH Environment"),
> > but **can** login with my password for
> > ServerUserAccount.
> >
> > 4. imported and checked out a project into the
> > repository as per the XCode manual.
> >
> >
> > 5. tried update and compare revisions etc. from
> within
> > XCode from the client computer.
> >
> > In the XCode general project settings, for
> "subversion
> > tool path" I put:
> >
> >
>
svn+ssh://<ServerUserAccount>@<ServerIPAddress>/usr/local/bin/svn
> >
> > **this does not work**
> >
> > If I use "/usr/local/bin/svn" for
> "subversion
> > tool path" when
> > accessing the repository from within XCode - but
> > directly on the server machine
> > (i.e. not via a client) - **it does work**.
> >
> > Note that I've also tried adding the equivalent of
> the
> > following to the authorized_keys file.
> >
> > "command="/usr/local/bin/svnserve -t --tunnel-user
> > denis -r /home/svn/
> > repositories" ssh
> > -dss <here follows the key>
> >
> >
> > Nicholas Crosbie
> >
> >
> >
> >
> >
> >
> > Send instant messages to your online friends
> http://au.messenger.yahoo.com
> > _______________________________________________
> > Do not post admin requests to the list. They will
> be ignored.
> > Cocoa-dev mailing list
> (email@hidden)
> > Help/Unsubscribe/Update your Subscription:
> >
>
> >
> > This email sent to email@hidden
> >
>
>
>
>
>


Send instant messages to your online friends http://au.messenger.yahoo.com
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • RE: XCode and subversion
      • From: "Bas Scheffers" <email@hidden>
    • Re: XCode and subversion
      • From: Shawn Erickson <email@hidden>
References: 
 >RE: XCode and subversion (From: "Bas Scheffers" <email@hidden>)

  • Prev by Date: create a view without IB
  • Next by Date: Moderator EOT (Re: Moire X v2.0 released, feedback would be appreciated)
  • Previous by thread: RE: XCode and subversion
  • Next by thread: Re: XCode and subversion
  • Index(es):
    • Date
    • Thread