How to check out a Subversion repository using svn+ssh protocol

sshsvn

I'm trying to checkout a repository via command line (the 'svn co' command), using the svn+ssh protocol. I need to checkout as a different user than what I currently am. The command svn co svn+ssh://username@server/repo/ would make sense, however when it prompts for a password, it never accepts it.

How do I checkout a repository over svn+ssh with a different user?

Edit to clarify a concern that this is off topic:
I'm trying to create a script to update a website to the current version. This is where the script fails.

Best Answer

You might be confusing your SVN user name with your account name: svn+ssh is to be used only when you have a real account on the server that contains the repository. Is it the case? Can you log in with ssh on that server? If so, it probably is a configuration problem on the server.

On the other hand, if your problem is that your current user name is (say) dave, and that your SVN user name is david, then you shouldn't use svn+ssh; just use the standard svn protocol, type Enter once when prompted for the password (SVN will ignore it). Then SVN will ask you for the user name: type david, and then the password when prompted.