TortoiseGit STILL doesn't save my password

828 views
Skip to first unread message

Alex Savitsky

unread,
Aug 20, 2015, 9:22:41 AM8/20/15
to tortoisegit-users
It keeps asking me for a password. I all the suggestions I managed to come by on Google: tried to use the wincred (tried "this repository only" as well as "current Windows user"); tried to install winstore; tried to use the "_netrc" file in the home folder. Nothing works, and it gets annoying. What am I doing wrong?

BTW, I'm not using the HTTPS URL to connect, nor would it work - I tried. Also, using public key is not an option, either.

Sven Strickroth

unread,
Aug 20, 2015, 9:24:31 AM8/20/15
to tortoise...@googlegroups.com
Hi Alex,
I's unclear to me how the URL looks like. Can you provide an example?

How does the password request dialog look like - can you provide a
screenshot?

Which TortoiseGit and git version are you using?

--
Best regards,
Sven Strickroth
PGP key id F5A9D4C4 @ any key-server

Alex Savitsky

unread,
Aug 20, 2015, 9:42:51 AM8/20/15
to tortoisegit-users
Sven,

I've attached the screenshots. The URL that shows in the Git>Settings>Remote>origin is asavitsk@ntdlxapp-tl01:/app/scm/git_repo/netotc.git

Thanks,

Alex
password.png
version.png

Sven Strickroth

unread,
Aug 20, 2015, 9:54:18 AM8/20/15
to tortoise...@googlegroups.com
Hi Alex,

Am 20.08.2015 um 15:42 schrieb Alex Savitsky:
> I've attached the screenshots. The URL that shows in the
> Git>Settings>Remote>origin
> is asavitsk@ntdlxapp-tl01:/app/scm/git_repo/netotc.git

I see you are using SSH w/o public key.

Wincred and _netrc only work for http(s) URLs.

For (Tortoise(Git))Plink (all three versions ;) ) there is currently no
way for storing the password - the only way is to use public key
authentication.

Alex Savitsky

unread,
Aug 20, 2015, 10:05:05 AM8/20/15
to tortoisegit-users
Sven,

Thanks for your explanation. By "three versions", do you mean different Plink flavors, Tortoise or otherwise? In other words, I'm stuck with entering the password for now, save for using a public key? If so, are there any plans to add this functionality in the future? 

Thanks,

Alex

Sven Strickroth

unread,
Aug 20, 2015, 10:35:06 AM8/20/15
to tortoise...@googlegroups.com
Am 20.08.2015 um 16:05 schrieb Alex Savitsky:
> By "three versions", do you mean different Plink flavors, Tortoise or
> otherwise?

Yes: TortoiseGitPlink, TortoisePlink and vanilla Plink.

> If so, are there any plans to add this functionality in the future?

So far it was not planned as the way for SSH without asking for
passwords is to use public key authentication.

I just checked it out, there might be a way for getting this working:

Create a file (e.g., plinkwrap.sh) with the content:

#!/bin/bash
"C:\Program Files\TortoiseGit\bin\TortoiseGitPlink.exe" -pw "Your PW" $*

And set this file as the ssh client in TortoiseGit nentwork settings.

Alex Savitsky

unread,
Aug 20, 2015, 10:57:16 AM8/20/15
to tortoisegit-users
Sven,

I tried this suggestion, and got the following message as a reply:

git.exe pull -v --progress  "origin"

fatal: 'C:/Program Files (x86)/Git/app/scm/git_repo/netotc.git' does not appear to be a git repository
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.


git did not exit cleanly (exit code 1) (1156 ms @ 8/20/2015 10:49:45 AM)

I assume it's some sort of Windows path escaping issue, as the app/scm/git_repo/netotc.git is my repository path, but it somehow got appended to the Git runtime path. Do you maybe know how to fix that?

Thanks,

Alex
Reply all
Reply to author
Forward
0 new messages