How to change Eclipse SVN Plugin Password

Subclipse does not collect or store username and password credentials when defining a repository. This is because the JavaHL and SVNKit client adapters are intelligent enough to prompt you for this information when they need to — including when your password has changed.

You can also allow the adapter to cache this information and a common question is how do you delete this cached information so that you can be prompted again? We have an open request to have an API added to JavaHL so that we could provide a UI to do this. Currently, you have to manually delete the cache. The location of the cache varies based on the client adapter used.

JavaHL caches the information in the same location as the command line client — in the Subversion runtime configuration area. On Windows this is located in %APPDATA%\Subversion\auth. On Linux and OSX it is located in ~/.subversion/auth. Just find and delete the file with the cached information.

SVNKit caches information in the Eclipse keyring. By default this is a file named .keyring that is stored in the root of the Eclipse configuration folder. Both of these values can be overriden with command line options. To clear the cache, you have to delete the file. Eclipse will create a new empty keyring when you restart.

Note: If using tortoise SVN, can reset the same by going to settings > Saved Data and clear Authentication Data.

58 Replies to “How to change Eclipse SVN Plugin Password”

  1. I have having trouble locating any of the files you have listed above. I have flex builder 3 installed which is a version of eclipse. I have linked to an SVN repo using a username and password. I now need to change the author information. Is this possible?

    1. I’m not able to find out any files under %APPDATA%\Subversion\auth\svn.simple………
      Also when I’m deleting my .keyring file , it is automatically coming back after 5-10 seconds……….

  2. 1. delete the file located under C:\Documents and Settings\…..\Application Data\Subversion\auth\svn.simple\
    2. Restart the eclipse IDE.

    1. I’m not able to find out any files under %APPDATA%\Subversion\auth\svn.simple………
      Also when I’m deleting my .keyring file , it is automatically coming back after 5-10 seconds……….

  3. Thanks Sreek it’s working…
    {
    1. delete the file located under C:\Documents and Settings\…..\Application Data\Subversion\auth\svn.simple\
    2. Restart the eclipse IDE.
    }

  4. On Mac OS X, it appears the Eclipse keyring file may alternately be located at /.eclipse_keyring (the root of your hard drive), which seems like an awfully strange place to put it, but that’s the only place I’ve found it on my machine.

    I’m using Eclipse 3.3.1.1 w/ Subclipse 1.4.1, with SVNKit 1.2 as my chosen SVN client in the Eclipse SVN prefs (Subversion Client Adapter 1.5.0, SVNKit Client Adapter 1.5.0.1, SVNKit Library 1.2.0.4502), on Mac OS 10.4.11 (Tiger).

    1. After two days of (discontinued) search your comment was the light at the end of the tunnel! The best! open a blog, copy and paste this comment there! Thanks

    2. Thanks a ton ! The keyring file would not even show up on finder or after searching .eclipse_keyring in Mavericks. But the little devil was there alright when I looked up using terminal. Thereafter a simple rm did the trick.

  5. Ganymede version 3.4.2
    Ganymede SVN Connector: Default SVNKit (SVNKIT 1.1.7 http://snvkit.com/)r4142)
    no file found under auth folder, deleted keyring as you suggested
    delete repository and source tree.

    restart Ganymede create a new repository location and look it remembers the repository location and username. Where is it storing this information ? cut and paste the password from the email sent from admin and have verified it is correct. When go to check in a file it puts up the repository location dialog ( not sure why? unless this tell you something) enter the password yet again, get auth failure, then can never check in this file again have to delete source and get it again

    How do we get Subversion to forget the password ?

    how help very appreciated !!
    thanks
    Michael

  6. Using Mac Osx 10.4 with myEclipse, subversion 1.2.4 and downloaded the svn binaries from collabnet, however eclipse still complains about the version of the JavaHL bindings not being v1.3 or greater. This is after I add the -Djava.library.path=/Library/Java/Extensions to the eclipse.ini startup in order to find them – it just doesn’t want to use JavaHL. So I use the SVNKit option and locate the .eclipse_keyring file, delete it and still the system does not prompt me for the user / password combination – so I can’t use the JavaHL option and delete the .subversion/auth cache file for passwords and it still remembers the password after I delete the .eclipse_keyring file when using SVNKit!! How can this be, how does it work and STILL remember passwords!

  7. I am using Aptana Studio (standalone installation) under Ubuntu 9.04 Jaunty.
    My .keyring file was located at: ~/.Aptana/Aptana Studio/configuration/org.eclipse.core.runtime.

  8. I use Eclipse PDT (Build id: 20090619-0625) on Mac OS X (10.5.7) and the keyring file is located in your home folder ~/.eclipse_keyring

    Just remove the file and start Eclipse. Once you’ve chosen one of the “Team” functions from inside Eclipse, a dialog pops up requesting your login credentials.

    1. Thanks for this. Very helpful. I had a problem where an old port number was stuck in the Mac OS Eclipse keychain. Deleting the $HOME/. eclipse_keyring did the trick. Thanks much @Tom.

    2. Thanks very much! I entered my ssh key passphrase wrongly. Unfortunately, subclipse doesn’t realize this, instead I received the message that the repository couldn’t be found on the remote site. Or maybe the server doesn’t provide enough information. Anyway, deleting the keyring file allowed me to reenter the passphrase correctly.

  9. Running Fedora 11 and Eclipse with Aptana plugin with RadRails and Subclipse.
    Subversion repository is local on same machine.

    Under Window->Show View->Other->SVN->SVN Repositories

    If you Discard Location, then Aptana forgets things.

    —–

    If you then, in the RadRails Perspective, select your project and right click it and then go through the Team->SVN->…, you will again get a chance to put in your subversion username and password.

    If you get something about OPTIONS server refused.. (I don’t have it in front of me now), it probably means that you are not running the subversion server (subserve). This needs to be started separately, perhaps as:

    (from the subversion binary directory)
    svnserve -d -r /home/user1/SVNRepository

    The SVN repository name in the Aptana dialogs must be of the form:

    svn://localhost/home/user1/SVNRepository

    The svnserve server speaks the svn protocol.

    You can use Wireshark to monitor the back and forth between Eclipse/Aptana/Subclipse and the svnserve server. The svnserve is listening on port 3690.

  10. I’m using Ubuntu 9.10 with Eclipse 3.5.1 and Subclipse. I got the cache cleared through deleting ~/.eclipse/org.eclipse.platform_3.5.0_155965261/configuration/org.eclipse.core.runtime/.keyring

  11. Thanks it worked fine for me.

    I do want to mention for the sake of those who are using (like me) a modified version of Eclipse CDT for Embedded Linux Development, called MontaVista DevRocket. The fix works, except the file is in a more inconspicuous location.

    One can follow the following steps:
    1) cd to the eclipse settings folder
    $cd ~/.eclipse
    2) Find all the files named .keyring in this folder and delete them
    $rm `find -name .keyring`

  12. Thank you for the hint. For people who use Vista, You will find the “auth” folder in C:\Users\…\AppData\Roaming\Subversion\auth\svn.simple

  13. Just another thank you from down here!

    I just needed to change the ssh port number, took me half an hour to figure that out, after trying all kinds of places where, according to svnkit documentation, it looks for connection information, changed this and that …

    Apparently once a connection was successful someone thought there would never ever be a need to edit that.

  14. @destere : “~” is the alias for the user home folder on many Unix/Linux system. Another alternative is “$HOME” . Which is usually “/home/username” (Linux) or “/Users/username” (Mac) . Therefore “~/.eclipse” is the directory name “.eclipse” in user’s $HOME directory (probably the folder to store local config for Eclipse of that user)

  15. In my Environment (Win XP, Eclipse Helios, Subversive with SVNKit the location of the stored password was:

    C:\Users\…\.eclipse\org.eclipse.equinox.security

  16. Hi,

    In my case Windows 7, Eclipse Helios:

    1/ Delete : /AppData/Roaming/Subversion/*
    2/ Delete : /eclipse/configuration/org.eclipse.core.runtime/.keyring

    Maxime

  17. Thanks Sreek ! deleting file under svn.simple ….. was simple 🙂
    That solution worked for Eclipse Galileo SVN plugin ..

  18. Ubuntu: Delete “.keyring” file at “eclipse/configuration/org.eclipse.core.runtime” and restart eclipse.

  19. On the mac machine
    1- Unhidden all the file by entering below command on terminal
    defaults write com.apple.finder AppleShowAllFiles -bool true
    2- In your home directory folder you will see the .eclipse_keyring file
    delete it.
    3- Restart the eclipse, this time svn will ask for password.

    I tried it on Mac OS X Version 10.6.8

  20. Thanks, deleting C:\Users\…\AppData\Roaming\Subversion\auth\svn.simple worked for me.

    For when I try to update or lock from RAD it asks for new user credentials.

  21. Thanks… For Windows7, deleting the file under C:\Users\\Application Data\Subversion\auth\svn.simple and restarting Eclipse worked for me.

  22. Great website you have here but I was wondering if you
    knew of any discussion boards that cover the same topics talked about here?
    I’d really like to be a part of group where I can get advice from other experienced people that share the same interest. If you have any recommendations, please let me know. Kudos!

  23. I do consider all of the ideas you have offered in your post.
    They’re very convincing and will definitely work. Nonetheless,
    the posts are too quick for novices. Could you please extend them a little
    from next time? Thank you for the post.

  24. For Mac OSX 10.9.x and eclipse Helios, the file was located at: ~/.eclipse/org.eclipse.equinox.security/secure_storage. Deleting that and restarting eclipse fixed that for me.

  25. Hey there! This post could not be written any better!
    Reading this post reminds me of my previous room mate!
    He always kept chatting about this. I will forward this article to him.
    Pretty sure he will have a good read. Thank you for sharing!

  26. Sorry, this page is of no help to me. I’m using Eclipse 4.5.2 on Windows 7 Enterprise.
    i) Folder AppData : Have no access to this folder, I can’t even see it.
    ii) File .keyring : Not present in the Eclipse installation folder (where I can see the folders Eclipse-4-5-2-JavaXtd, Intégrations, Jdks and Serveurs tough).
    May this version of Eclipse is enterprise-customized, maybe the .keyring file is named different.

Leave a Reply to domain Cancel reply

Your email address will not be published. Required fields are marked *