Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

ssh

svn

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.

like image 624
davethegr8 Avatar asked Dec 18 '08 00:12

davethegr8


1 Answers

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.

like image 102
Arthur Reutenauer Avatar answered Nov 09 '22 23:11

Arthur Reutenauer