To tell Bazaar to use putty, and thus access to the key cached by pageant, you need to set the BZR_SSH
environment variable to point to plink.exe
, for example:
set BZR_SSH=C:\Program Files\PuTTY\plink.exe
Also, it's probably not a problem, but I urge you to create a new key with 2048 bits encryption. When you open puttygen.exe
, change the Number of bits in a generated key box from 1024 to 2048. 1024-bit keys are known to be insecure and automatically denied in modern systems. You will be more future proof with 2048-bit keys.
Finally, if the above still doesn't work, I recommend the following sanity check:
bzr config --remove launchpad_username --scope=bazaar
bzr info lp:bzr
This should work, regardless of your key setup. Later you can add back your launchpad username configuration by running bzr lp-login paulmarkcastillo
again.
UPDATE
If you are using bzr
from Git Bash
or cygwin
then be careful how you set BZR_SSH
. If you set it using the environment variables screen, that should be fine. If you set it somewhere else, for example in ~/.profile
, then you need to write it differently, for example in Git Bash:
BZR_SSH='/c/Program Files/PuTTY/plink.exe'
# or probably this works too
BZR_SSH='C:\Program Files\PuTTY\plink.exe'