Note that there are some explanatory texts on larger screens.

plurals
  1. POHow can I make a passphrase-protected PPK stop asking for password in TortoiseHG via TortoisePlink and KeyRing
    primarykey
    data
    text
    <p><strong>SOLVED, see the last edit</strong></p> <p>I have a SourceForge repository and I correctly set my SSH key there. It works fine. But when I use TortoiseHG to push my modifications to the repository, I keep getting asked for the password for my PPK (since I protected it).</p> <p>I tell Mercurial about my PPK like this:</p> <p>[ui] ssh = tortoiseplink.exe -ssh -i "c:\Users\my_user\SSH\my_user.ppk"</p> <p>But it keeps pestering me with the password for the PPK. I know about that KeyRing extension for Mercurial but does it work with PPKs?</p> <p>Then...</p> <p>There is this Pageant tool with TortoiseHG. Apparently you tell TortoiseHG to use it by specifying -agent, like this:</p> <p>[ui] ssh = tortoiseplink.exe -ssh -i "c:\Users\my_user\SSH\my_user.ppk" -agent</p> <p>I added my key in Pageant but when I synchronize with TortoiseHG, it <strong>still</strong> asks for the passphrase of my PPK, even though I already mentioned that when I added the PPK in Pageant.</p> <p>And another thing which annoys me is that Pageant "forgets" all keys upon program restart. So it's kinda' useless.</p> <p>Any way I could use that KeyRing extension to add my PPK in TortoiseHG and keep the password stored somewhere?</p> <p>If there is no way to solve this, I guess I'll just use a non-protected PPK and that's it...</p> <p><strong>LATER EDIT:</strong></p> <p>This is the debug output I get when I try to do a push via the TortoiseHG Sync tool, configured as above.</p> <p>% hg --repository C:\Projects\MyProject push --debug ssh://echysttas@hg.code.sf.net/p/myproject/code</p> <p><code>pushing to ssh://echysttas@hg.code.sf.net/p/myproject/code</code></p> <p><code>running "c:\Program Files\TortoiseHg\TortoisePlink.exe" -agent echysttas@hg.code.sf.net "hg -R p/myproject/code serve --stdio"</code></p> <p><code>sending hello command</code></p> <p><code>sending between command</code></p> <p><em>here I get a password request, which I cancel because I don't want to keep repeating my password</em></p> <p>no suitable response from remote hg [command returned code 255 Mon Nov 19 20:43:14 2012]</p> <p><strong>LATER EDIT 2:</strong></p> <p>I noticed that some examples use plink.exe instead of TortoisePlink.exe. Well, ok, I tried with plink.exe (directly from the Putty website) as well. This yielded promising results...</p> <p><code>sending hello command</code></p> <p><code>sending between command</code></p> <p><code>remote: Passphrase for key "rsa-key-20121118":</code></p> <p><code>remote: Passphrase for key "rsa-key-20121118":</code></p> <p>But then, it got stuck here.</p> <p><strong>LATER EDIT 3</strong></p> <p>Amazingly funny find ::- D.</p> <p>It got stuck because I was invoking TortoiseHG Sync from non-elevated Explorer but I started Pageant from an <strong>elevated Total Commander</strong>. I'm using UAC on my Windows 7 and that caused the problem.</p> <p>If Pageant is run from admin-rights Total Commander, then the TrtoiseHG Sync must also be launched from there! If done so, it works! It also works if I start Pageant from non-elevated Explorer and I also do the Sync from there.</p> <p>Done!</p> <p>Lazy Badger I'm still awarding the answer to you because you were anything BUT lazy and you proved interest &amp; helped me a lot. Although "it works on my machine" isn't really the answer, it sure got me thinking and your many words &amp; descriptions are worth that glorious green checkmark, eh? :D.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload