TortoiseSVN not saving authentication details

SvnTortoisesvn

Svn Problem Overview


TortoiseSVN is not saving my authentication details even when I check the save authentication checkbox, and asking me to enter username and password every time I access it.

How can I fix this?

Svn Solutions


Solution 1 - Svn

I had the same issue and I simply deleted this folder:

%APPDATA%\subversion\auth\

Next time I logged in it was created anew and my password was properly saved.

Solution 2 - Svn

If you access your repo over ssh, then you can use the following solution to save your ssh credentials:

> The easiest way to do this is to right click in Windows Explorer, > select Tortoise > Settings. Then in the Settings window select > Network. Then in the SSH client set use the Tortoise SSH client, > TortoisePlink, to use your username and password. For example: > > [DRIVE LETTER]:[DIR]\TortoiseSVN\bin\TortoisePlink.exe -l foo -pw bar

> source

For instance, mine is

C:\Program Files\TortoiseSVN\bin\TortoisePlink.exe -l *mysvnusername* -pw *mysvnpassword*

I have tried this and TortoiseSVN does not ask you for password for update or commit anymore. It is slightly insecure, since your ssh password is stored in plain text.

Solution 3 - Svn

If you're using svn+ssh:// to access your repository, svn isn't involved in authentication at all so it simply can not save the authentication. In that case, you have to use an SSH tool like pageant to store your authentication data.

Solution 4 - Svn

Here is what worked for me: in TortoiseSVN > Settings > Saved Data, click the Clear button near Authentication Data.

Solution 5 - Svn

Considering TortoiseSVN save the authentication informations in the:

# WindowsXp
"%APPDATA%"\subversion\auth
# or, for Windows7
"%APPDATA%"\Roaming\Subversion\auth

(see Where does TortoiseSVN save password cached files in Windows 7?)

You could check if you have any right issue in those directories (try to create a file in it).
Maybe another process block the access to the right authentication file: try rebooting, and see if the problem persist.

Solution 6 - Svn

Go to Tortoise Settings > Saved Data > Authentication Data
And clear whatever you want.

Solution 7 - Svn

This worked for me on Windows 7. Just remove the following directory and restart TortoiseSVN: C:\Users[user]\AppData\Roaming\Subversion\auth

Solution 8 - Svn

I had exactly the same issue...

Had to add the following to my %APPDATA%\subversion\servers

store-passwords = yes

( i also added store-auth-creds = yes store-plaintext-passwords = yes for good measure)

Solution 9 - Svn

I've found the easiest/best way to do this is check out the repository using a URL like:

svn+ssh://[email protected]/path/to/repo

Putting the user name in there makes TortiseSVN/Plink use it in the future automatically. Combined with Pageant, you don't have to worry about anything. And it's not global so you can have different user names for different repositories.

Solution 10 - Svn

If you have applications programmatically accessing Subversion, for instance via SharpSVN or SVNKit, your local authentication cache could be getting modified.

There's a simple fix for this--uncomment the following line in Subversion's local config file

store-auth-creds = no

This file is usually stored within the 'Application Data' directory. (Which is a hidden directory by default--unhide hidden folders in folder options). In XP and depending on your installation, this directory is usually at

> C:\Documents and Settings\username\Application Data\Subversion

If this config file is not available in your version of TortoiseSVN you have to configure the same setting in the 'servers' file (within the same directory) as a group-based authentication setting. Portions of the config file have been deprecated since my build. My group is using TortoiseSVN 1.6.0, Build 15855.

Solution 11 - Svn

This is how I used ssh to connect TortoiseSVN to a local Linux Server without logging in:

1. Setup (not sure if this section is necessary)

1.1. Open TortoiseSVN settings (Right click a file, tortoiseSVN > Settings)

1.2. In the settings, select Network

1.3. Under SSH, SSH client, enter: "C:\Program Files\TortoiseSVN\bin\TortoisePlink.exe"

1.4. Click OK.

1.5. Install putty

2. Generate the keys

2.1. Run “C:\Program Files (x86)\PuTTY\puttygen.exe”

2.2. Select ssh-2 rsa

2.3. Click Generate (move the cursor around in the window to generate the key)

2.4. Move the cursor around until it is complete (the completion bar should fill up completely)

2.5. Add a key comment (description or user name)

2.6. Select Save public key

2.7. Save it to a file that you create (example: Documents > ssh > description-public-key)

2.8. Select Save private key

2.9. Save it to a file that you create (example: Documents > ssh > description-private-key)

2.10. Select and copy the key from the window

2.11. Save it to a file that you create (example: Documents > ssh > description-authorized-key.txt)

3. Set up the server side

3.1. Putty to the server and log in as the user

3.2. In the home directory, go to or make .ssh (~/.ssh)

3.3. Open/make authorized_keys (~/.ssh/authorized_keys)

3.4. Copy the text from the putty gen window that was saved in the description-authorized-key.txt

3.5. Paste the text in the authorized_keys file

3.6. Save and exit

3.7. chmod 600 authorized_keys

3.9. Make sure that the subversion server is running (To check: ps -e | grep svnserve, to launch: svnserve -d)

3.8. end the putty session

4. Set up the client side

4.1. Open putty on the client/Windows/TortoiseSVN side

4.2. Go to Connection > SSH > Auth

4.3. In Private key file for authentication, enter the full path to the description-private-key file (example: C:\Users\<user name>\Documents\ssh\description-private-key.ppk)

4.4. Go to Session

4.5. Under Saved Sessions, select Default Settings

4.6. With Default Settings selected, select save

4.7. Firewalls might need to be disabled or given exceptions

4.8. Go to a directory to put an SVN checkout (right click > SVN Checkout...)

4.9. In the URL of repository, use svn+ssh://username@... (example: svn+ssh://[email protected]/path/to/repo)

References:

http://www.tecmint.com/ssh-passwordless-login-with-putty/

https://kb.wisc.edu/education/page.php?id=45394

https://kb.wisc.edu/education/page.php?id=45394

https://tortoisesvn.net/ssh_howto.html

https://stackoverflow.com/a/2356647/5582694

Solution 12 - Svn

This is how I resolved the issue in my laptop. Open %APPDATA%\Roaming\subversion\servers file in notepad Towards the end of the file there is a section that had the following: store-password = no I changed it to yes.

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionRaviView Question on Stackoverflow
Solution 1 - SvnJocelynView Answer on Stackoverflow
Solution 2 - SvnSouvikView Answer on Stackoverflow
Solution 3 - SvnStefanView Answer on Stackoverflow
Solution 4 - SvnTibiView Answer on Stackoverflow
Solution 5 - SvnVonCView Answer on Stackoverflow
Solution 6 - SvnvmouracView Answer on Stackoverflow
Solution 7 - SvnLuchoView Answer on Stackoverflow
Solution 8 - Svnuser2333481View Answer on Stackoverflow
Solution 9 - SvnJoshView Answer on Stackoverflow
Solution 10 - SvnDendriteView Answer on Stackoverflow
Solution 11 - SvnChadView Answer on Stackoverflow
Solution 12 - SvnRechanaView Answer on Stackoverflow