storing multiple credentials in tortoisesvn - tortoisesvn

I am working on several projects in different subversion repositories using tortoise. How do I save the credentials for all my projects so I don't have to enter username/password everytime? If I save the credentials, only the latest credentials are saved, forcing me to clear the cache before using tortoise on another project.
thanks
Thomas

I also use XP-Dev with more than one login and had the same issue.
I used the following svn command line to do the initial checkout:
svn checkout http://xp-dev.com/svn/ProjectName c:\dev\projectfolder --username myusername --password mypassword
This checked out the project and the credentials were saved so that Tortoise SVN worked following this.

The credentials are saved for every authentication realm string.
If you want to use different auth data for different repositories, include the repository name in the realm string of your server.

Go in TortoiseSVN -> Settings-> Store Data
Click the clear button. Than I will ask you login on each push
See the image

Workaround if you have only 2 credentials: for 1 of them, replace the address xp-dev.com with its IP address so that from SVN Tortoise point of view, there are 2 distinct servers.

Related

How to set ubuntu (linux) to use github.com's two-factor authentication from commandline

This is why I had to face this two-factor issue: the GitHub announcement
I've seen many links regarding this problem but, because info is scattered, I decided to make a summary with steps that worked for me.
First of all, here is the best link I've found on how to set the two-factor security in github.com
Here is what I set for my token (If you select less rights than required, the access fails too, no matter the token is ok)
The key here is to use the new token INSTEAD of your user password. But because I'm just fetching all changes from my github.com repos, I've saved the credentials on local. I must admit this is NOT recommendable because security (in Linux, this is set in plain text, that is a very bad practice), but here we goes ...
Here is the link about how to set git credentials on local
Now, here is where you must set your credentials: file is ~/.git-credentials
yyyyyy#xxxxxx:~$ cat .git-credentials
https://put-your-github-user-here:put-yout-token-here#github.com
Another example on what to do in this file
Here is a link about the format for this file
After setting all this stuff, try to check the repo status or fetch any changes to local.

Store credentials for git commands using HTTP

I would like to store Git credentials for git pulls permenantly on a linux machine, and git credential.helper doesn't work ( I think because I'm not using SSH ) - I get that error "Fatal: could not read password for 'http://....': No such device or address". Given that I'm not the administrator of the repository and only HTTP is allowed for authentication, and fortunately I don't care about the safety of the password. What can I do to put the git pull command in a bash file and avoid prompting the user for password?
I hope there is a way around it.
Two things wrong with this question:
Most repositories such as GitHub require HTTPS. Even if you try to clone over
HTTP, it just switches it on the backend to HTTPS and pushes require it as
well.
Pulls don’t require a password, unless it’s a private repo. Like #1, since
you’ve given no info about your repo it’s hard to comment further on this.
Now, what I do is this:
git config --global credential.helper store
Then the first time you push it will ask for your credentials. Once you’ve
entered them they are stored in ~/.git-credentials. Note that they are stored
in plain text, you have been advised.
I'm assuming that your repository requires authentication for pulls, or else git wouldn't ask you for a password for the pull.
The recommended way to bypass the user password prompt is to create an SSH key on that machine, add the public key to the git server, then use the SSH url for the remote instead of the HTTP/S url. But since you specifically said:
I don't care about the safety of the password
you can actually just specify the password inline for the git pull like this:
git pull http://username:password#mygithost.com/my/repository

how to add a new user account for an existing SVN-subversion server?

I have an existing SVN server and I need to add more users to connect using subversion clients to do checkout, updates and commits. I read documents (http://svnbook.red-bean.com/en/1.7/svn.serverconfig.svnserve.html#svn.serverconfig.svnserve.auth.users) on how to adding new users to the svn server but I couldn't get a good idea.
Please somebody just help me to find out the correct way to add new users and grants privileges.
my problem is I have a SVN server with user "aaa" with administrative privileges. I need to add an another user call "bbb" with same privileges.
Can svn commands use to create new user account after set-up the SVN Server ?
or do I need to manually edit existing .conf file to add new users for SVN server ?
Server OS is CentOS 6.3
As Rup explained in the comments. I found /etc/svn-auth-conf and list all existing users. Then added a new user using below
htpasswd -m /etc/svn-auth-conf <userName>
then new password, and password confirmation are prompted.
its worked.

How to know what credentials were used for a TortoiseSVN checkout?

I checked out a folder with TortoiseSVN using some credentials. I don't remember what credentials I used. How can I know what credentials I used to check out the folder? I don't want to change the code for that.
You could try and commit something then view the log to see who is credited with the commit.
Svn Commit
Tortoise-> Show Log
Edit:
I am assuming what you wanted to ask was "I am running tortoise svn and checked out something from an svn server and used some credentials but I can't remember which username I put in. How can I tell which username I put in?"
TSvnPwd - TortoiseSVN Password Decrypter from Leapbeyond Solutions.
Decrypt stored in %APPDATA%Subversion\auth\ credentials: from Extract TortoiseSVN saved password question

About authentication with tortoise svn

I have installed & configured svn server as well as Tortoise svn on windows. Users creation is also done. Now am trying to open repository with repo browser command of Toroise Svn, then it is asking for the credentials. Though the username & password are valid, it is shwoing the login prompt for 3 times. If i enter the details properly for 3 times, then only it is allowing me to view the contents of the repository. please help me in this regard..
Do you allow Tortoise to save the password? If I remember correctly it will ask you basically on every operation for the password if you do not save the credentials. It might even ask you several times for what you conceive as a single operation...
I think Tortoise SVN asks for login details on every connection.
If you use a single user on all connections you can set up TortoiseSVN to enter them for you by configuring TortoisePLink with additional arguments.
This will allow you to sync and commit without entering your login/password every time.
From here:
a) Right click on local code repository.
b) Go to TortoiseSVN > Settings
c) Go to “Network”
d) Browse for SSH Client and use following “C:\Program
Files\TortoiseSVN\bin\TortoisePlink.exe” – Can be found in TortoiseSVN
installation folder in c:\Prgram Files
e) Append following replacing
username and password with your user name and password “-l username
-pw password”
f) Click OK/Apply

Resources