SSH+SVN Command Line with –username and –password
This is very obvious now, but wasn’t when I spent an hour searching today. If you’re using SVN from the command line, against a server requiring SSL, your URL will look something like this:
svn co svn+ssh://svn.domain.com/repository
You can specify the username and password like this:
svn co svn+ssh://svn.domain.com/repository --username user --password pass
But, running that command you’ll get prompted for some other user’s password, probably the one you logged in to the command line with. E.g.
svn co svn+ssh://svn.domain.com/repository --username user --password pass >you@svn.domain.com's Password:
Huh? What happened to “user”? What it’s asking you for here is your SSH credentials, not SVN. Enter your SSH password, and the –username and –password args will unlock SVN for you. I’m sure this was obvious to most people, but not to me (at first). Heh, a little embarassed, so I thought I’d post about it. You can also edit the default username used for certain domains by editing your .bashrc (or other shell config) file.













You can use your public key so that you don’t have to enter your SSH password. Take a look here for info in how to do it: http://blogs.translucentcode.org/mick/archives/000230.html