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
Related
I just noticed I cannot login in my Jenkins.
How can I reset my password and access to my account again? I do not see any link to recover passwords and they seem to be hashed in the installation directory.
In How to reset password of Jenkins you have a set of tricks to make this happen. I based my solution on it, but it diverges in a certain point.
This is what I did to solve the issue:
Let's assume Jenkins' directory is stored in $JENKINS (in my machine this is /var/lib/jenkins/) and your username is user.
Allow signups by disabling disableSignup. This means editing $JENKINS/config.xml and setting this option to false:
<disableSignup>false</disableSignup>
Restart Jenkins (service jenkins restart).
Enter in Jenkins and register a new user, for example testuser, with the password being the one you want to set to your user user.
Extract the hashed password from $JENKINS/users/testuser/config.xml. You will see something like:
<passwordHash>#jbcrypt:$2a$10$PY7p4dxFiGSgJpxiNVTQDuJKAQ8pr9snDgQXaafogjErvgB0oC3qy</passwordHash>
Set the user's password to this one in <passwordHash>. That is, edit $JENKINS/users/user/config.xml and replace the password there to set the one above.
Disallow signups back by enabling disableSignup. That is, in $JENKINS/config.xml set the disableSignup option back to true:
<disableSignup>true</disableSignup>
Restart Jenkins again.
Note you can also replace the password directly by generating a jBCrypt. For example, in http://www.mindrot.org/projects/jBCrypt/ you can find some Java code for it.
A different approach for Windows that solved this issue for me:
In
C:\Windows\System32\config\systemprofile\AppData\Local\Jenkins\.jenkins\config.xml, change useSecurity to false.
The restart Jenkins, you will now get full access without login. Go to People, select the old admin user and delete the user.
Then set
<disableSignup>false</disableSignup>
and
<useSecurity>true</useSecurity>
Restart Jenkins again, and you will now be able to register again.
Finally
<disableSignup>true</disableSignup>
I'm trying to edit some files on a remote server with Vim. I've managed this on other servers without trouble in the past, but in this case when I type:
$ vim ftp://username#xxxxxx.com/
I'm prompted for a password, I type it in and I see this:
Name (notixvalet.com:george): User cannot log in.
Please login with USER and PASS.
Please login with USER and PASS.
Please login with USER and PASS.
ftp: Login failed
'george' is my username on my local machine (Mac OS X 10.8.) Vim seems to be ignoring the username I give it and trying to log on as 'george', no matter what I do. To test this I created a new account on my MacBook with the same username as the username on the server I'm trying to log in as, then from that account I can log in fine. This is obviously a VERY hacky solution - how can I connect using the right username from my regular account?
(Incidentally, the username and password I'm using are 100% definitely right - I can use them to connect to the server through an FTP client such as FileZilla.)
The plugin you are using to edit the remote files is netrw, as noted by Ingo in the comments. You can read the plugin help file through :h netrw. In special:
NETRC *netrw-netrc*
The <.netrc> file, typically located in your home directory, contains lines
therein which map a hostname (machine name) to the user id and password you
prefer to use with it.
The typical syntax for lines in a <.netrc> file is given as shown below.
Ftp under Unix usually supports <.netrc>; ftp under Windows usually doesn't.
>
machine {full machine name} login {user-id} password "{password}"
default login {user-id} password "{password}"
Your ftp client must handle the use of <.netrc> on its own, but if the
<.netrc> file exists, an ftp transfer will not ask for the user-id or
password.
Note:
Since this file contains passwords, make very sure nobody else can
read this file! Most programs will refuse to use a .netrc that is
readable for others. Don't forget that the system administrator can
still read the file! Ie. for Linux/Unix: chmod 600 .netrc
Is there any chance that you forgot to copy the ~/.netrc file from the other servers where you can connect without problems? Or it has incorrect permissions, as mentioned on the last paragraph?
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
We've recently set up Gitolite server. All seems well. I can connect to it without a problem.
A new user has been set up, he's on a Mac and trying to use SourceTree. The only way I could get him to connect was for him to attempt to ssh to the server and I typed in the password (exited afterwards). Without that the system kept asking for a password for that server.
Is this normal behaviour?
How do non-sysadmin users gain access to gitolite?
Gitolite is based on forced command, which means non-interactive session.
So:
no password should ever be entered (assuming here non-password protected private key).
(as detailed in "how gitolite uses ssh").
no "non-sysadmin" should ever gain access to gitolite server itself.
So all he should need is a public key stored in ~/.ssh (making sure both his home and .ssh aren't group or world writable), registered in gitolite-admin/keys and published on the gitolite server .ssh/authorized_keys file.
From there, as mentioned in "Sourcetree and Gitolite":
If you are cloning a remote git repository, you need to tab out of the Source path/ URL field to activate the clone button.
The url will be validated at that point.
The url needs no special syntax working with gitolite, and even respects the host entries in your ssh conf file. So in my case a url of gitolite:workrepo is sufficient.
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.