You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Greg Willits <li...@gregwillits.ws> on 2008/03/19 06:11:18 UTC
svn+ssh Could not chdir
I've been reading and monkeying all day on getting an svn+ssh setup
going, and I'm close, but two things are still funky.
I'm putting repos on OS X Server 10.5.2 which has svn 1.4.4 built in.
The server I testing with is my test server on home LAN (home.srvr)
that I've used basic svn:// just fine with.
At this stage, from the client machine something like the following:
svn list svn+ssh://home.srvr/{repo_path}
will ask for a password, I'll enter my user's password, and get this
error message
Could not chdir to home directory : No such file or directory
but will get asked for a password again, so I enter it again, and
then I get a listing.
Other commands will similarly require 2X or sometimes 3X the entry of
the password.
1) I can't figure out where the error comes from
2) I am puzzled why I'm not being asked for the ssh passphrase of the
user
Here's how I have built what I have so far:
-- created a user named "svn" and put its OS X "home" folder at the
root level (not in /Users), and I stripped out all the customary OS X
user folders
-- created a group called "svnusers" and added the "svn" user
-- created an /svnHome folder at the top level for all repositories
-- drag & drop copied an existing repo (which I have been using just
fine as a basic svnserve on a LAN) into /svn/svnHome, so I now have /
svn/svnHome/{my_repo}
-- edited the svnserve.conf file to remove all the edits from the
prior plain server setup
-- on /svnHome I did chown -R svn, chgrp -R svnusers, and made sure
both had rw privs
-- created a /svn/.ssh folder
-- created a /svn/.ssh/authorized_keys files (chmod 600)
-- copied my workstation id_rsa.pub file to the server, used cat to
append the file contents, then opened the file and modified the line
to look like this (all on one line in the file)
command="/usr/bin/svnserve -t --tunnel-user=greg",
no-port-forwarding,no-agent-forwarding,no-pty
ssh-rsa AAAAB_etc_etc_etc greg@yaddayadda
So now, on the client when I enter
svn list svn+ssh://home.srvr/svn/svnHome/{my_repo}/trunk
I get the errors described above, and no challenge for the ssh
passphrase (which on svn+ssh repos I've used set up by others, I
always got asked for a passphrase before being asked for password
even if passphrase was to be empty). At one point I pulled the
authorized_keys file and it didn't seem to make any difference to the
setup. So puzzled whether those steps are even needed.
I've googled dozens of blogs and forum posts, but not getting
anywhere on these two things.
Any ideas on these two things would be great.
-- gw
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Re: svn+ssh Could not chdir
Posted by Greg Willits <li...@gregwillits.ws>.
On Mar 18, 2008, at 11:11 PM, Greg Willits wrote:
> from the client machine something like the following:
>
> svn list svn+ssh://home.srvr/{repo_path}
>
> will ask for a password, I'll enter my user's password, and get
> this error message
>
> Could not chdir to home directory : No such file or directory
>
> but will get asked for a password again, so I enter it again, and
> then I get a listing.
I believe I figured out the source of the error message, but still
confused about the ssh keys part (but I'll post that separately).
for the archs, the error message appears to be coming from OS X
because the particular user in question has not been assigned a home
folder (on purpose). I don't know how to stop this error message
except to create a home folder fro the user (which I don't want to
do). So, I know where it's coming from, but I have no solution yet.
-- gw
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org