Permission Denied on SSH on Bazaar

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-06 04:37:35

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'
标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!