Reputation: 3268
I am developing on a mac and using an svn server on another machine using svn_ssh
.
While I was able to do an initial check-in and check-out, I cannot do a commit from the command line because the system tries to use my local username jondoe
(and prompts a password) when connecting to the remote server where my username is johnd
.
So, how can I tell the svn+ssh to use johnd
for my commits?
Upvotes: 13
Views: 40659
Reputation: 535
.svn
directory)Checkout again, but now using your remote username
svn checkout svn+ssh://<ssh_username>@<svn host domain>/<server repository path>
Restore your changes from backup
Commit them
svn commit -m 'Description'
I've just successfuly checked out and committed with different local and SSH usernames.
Upvotes: 6
Reputation: 47062
In your ~/.ssh/config
, add a section like this:
Host svn.example.com
User johnd
Replace svn.example.com
with the hostname of the svn server.
This will work for all ssh connections, not just subversion-related ones.
See also the manual page ssh_config
, which you may be able to read by running man ssh_config
in a shell.
Upvotes: 3