Hi,
I am trying to install SVN inside ezjail using FreeBSD 8. I only want the jail users to be able to ssh into the jails and/or use their respective jailed SVN installations, and deposit files via sftp. For the below example jail, SSH will use port 12250 and SVN will use port 12260, and I would like to use SVN to use SSH (although I am open to other options inside the jail).
The jails are setup using the server's single local IP address (192.168...)
SSH for each jail is configured to use a different port and has been set correctly in /etc/ssh/sshd_config.
I have confirmed that I can SSH into a jail using the right port.
I have also configured SSH with an appropriate public/private key pair to allow SSH connections inside the jail (for SVN to use SSH) and confirmed that this works (without it I was getting a no-tty error from password-based SSH authentication).
in /etc/rc.conf I have:
I modified /home/jailuser1/repository/conf/svnserve.conf:
and modified /home/jailuser1/repository/conf/passwd appropriately
I have set the SVN_SSH shell variable to "ssh -p 12250"
I think that's it. when I try to connect outside the server (but still in the LAN) using:
I get an SVN unexpectedly terminated message after a short while.
as an experiment, I installed SVN on the same server outside the jail and it works perfectly.
if I telnet 192.168.1.89 12260, I get some SVN-esque output.
so maybe there is something about the jail itself that is preventing SVN from authenticating using SSH? maybe the custom ports are not configured correctly/completely?
any help is appreciated!
thanks!
I am trying to install SVN inside ezjail using FreeBSD 8. I only want the jail users to be able to ssh into the jails and/or use their respective jailed SVN installations, and deposit files via sftp. For the below example jail, SSH will use port 12250 and SVN will use port 12260, and I would like to use SVN to use SSH (although I am open to other options inside the jail).
The jails are setup using the server's single local IP address (192.168...)
SSH for each jail is configured to use a different port and has been set correctly in /etc/ssh/sshd_config.
I have confirmed that I can SSH into a jail using the right port.
I have also configured SSH with an appropriate public/private key pair to allow SSH connections inside the jail (for SVN to use SSH) and confirmed that this works (without it I was getting a no-tty error from password-based SSH authentication).
in /etc/rc.conf I have:
Code:
svnserve_enable="YES"
svnserve_flags="-d --listen-port=12260 --listen-host 0.0.0.0"
svnserve_data="/usr/home/jailuser1/repository/"
svnserve_user="jailuser1"
svnserve_group="jailuser1"
I modified /home/jailuser1/repository/conf/svnserve.conf:
Code:
anon-access = read
auth-access = write
password-db = passwd
and modified /home/jailuser1/repository/conf/passwd appropriately
I have set the SVN_SSH shell variable to "ssh -p 12250"
I think that's it. when I try to connect outside the server (but still in the LAN) using:
svn co [url=svn+ssh://jailuser1@192.168.1.89:12260/usr/home/jailuser1/repository]svn+ssh://jailuser1@192.168.1.89:12260/ ... repository[/url]
I get an SVN unexpectedly terminated message after a short while.
as an experiment, I installed SVN on the same server outside the jail and it works perfectly.
if I telnet 192.168.1.89 12260, I get some SVN-esque output.
so maybe there is something about the jail itself that is preventing SVN from authenticating using SSH? maybe the custom ports are not configured correctly/completely?
any help is appreciated!
thanks!