I am running Ubuntu 12.04.2 LTS as virtual machine and there is vShield also at the front with enabled firewall and some NAT modifications. There are also other machines in my VPS configuration, but it is not important right know. Important is that I changed SSH port on Ubuntu from 22 to 765 and on the vShield I made port translation from 424 to 765. Firewall has all the necessary permissions for SSH (and SVN).
So I make SSH conection like this
kopparberg:Webpage marek$ ssh marko@91.***.***.69 -p 424
and it works like a charm.
Where is the problem? I am trying to set up SVN server on Ubuntu following this guide http://odyniec.net/articles/ubuntu-subversion-server/.
If checkout my repository "Webpage" over SVN protocol
kopparberg:Webpage marek$ svn checkout svn://91.***.***.69/Webpage --username svnuser
it works as it should.
What I really want to do, is checkout over svn+ssh protocol. I tried many different ways without success.
kopparberg:Webpage marek$ svn checkout svn+ssh://91.***.***.69:424/usr/local/svn/repos/Webpage --username svnuser
svn: To better debug SSH connection problems, remove the -q option from 'ssh' in the [tunnels] section of your Subversion configuration file.
svn: Network connection closed unexpectedly
Another attempt...
kopparberg:Webpage marek$ svn checkout svn+ssh://91.***.***.69/usr/local/svn/repos/Webpage -p 424 --username svnuser
svn: invalid option character: p
Type 'svn help' for usage.
I also add ssh = ssh -p 424
to /user/marek/.subversion/config
file.
kopparberg:Webpage marek$ svn checkout svn+ssh://91.***.***.69/usr/local/svn/repos/Webpage --username svnuser
marek@91.***.***.69's password
Permission denied, please try again.:
None of my password is right.
Is it even possible to checkout with svn+ssh protocol over custom port without modifiying the config file?
EDIT: I found out that I should use SSH user and not SVN user of course. But I was using it on completely wrong way. Instead of --username
subcommand I should put my username in front of IP address.
kopparberg:Webpage marek$ svn checkout svn+ssh://marko@91.***.***.69/usr/local/svn/repos/Webpage
This looks much better and it works! What I am still searching is a solution where I will not need to edit config file before checkout. In other words I would like to change the SSH port on the fly.