Traceback if authentication.conf contains section without password
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Bazaar |
Fix Released
|
Low
|
Vincent Ladeuil |
Bug Description
Here is example of authentication.
[myproject]
user = root
host = myhost
I want to use this for bzr+ssh access with pageant SSH keys agent. SSH key is loaded to agent, so I decided to not write password to authentication.
The I do: bzr push bzr+ssh:
0.234 encoding stdout as sys.stdout encoding 'cp866'
0.234 bzr arguments: [u'push', u'bzr+ssh:
0.234 looking for plugins in C:\work\
0.531 looking for plugins in C:\Program Files\Bazaar\
0.531 Looking for plugins in 'C:\\Program Files\\
0.609 Names in archive: ['__init__.pyc', 'launchpad/
0.609 Load plugin launchpad from zip 'C:\\Program Files\\
0.625 encoding stdout as sys.stdout encoding 'cp866'
2.578 falling back to default implementation
2.578 failed to load system host keys: [Errno 2] No such file or directory: 'C:\\/.
[ 536] 2008-03-07 12:36:16.015 INFO: Connected (version 1.99, client OpenSSH_3.8.1p1)
2.937 Traceback (most recent call last):
File "bzrlib\
File "bzrlib\
File "bzrlib\
File "bzrlib\
File "bzrlib\
File "bzrlib\
File "bzrlib\
File "bzrlib\
File "bzrlib\
File "bzrlib\
File "bzrlib\
File "bzrlib\
File "bzrlib\
File "bzrlib\
File "bzrlib\
File "bzrlib\
File "bzrlib\
File "bzrlib\
File "bzrlib\
File "bzrlib\
File "bzrlib\
File "bzrlib\
KeyError: 'password'
If I provide password in config all works OK.
Related branches
Changed in bzr: | |
status: | Confirmed → Fix Committed |
Changed in bzr: | |
milestone: | none → 1.5 |
status: | Fix Committed → Fix Released |
authentication.conf specification explicitly says that SSH agents *are* a better solution.
I will look more closely at your use case but I think you're trying to use authentication.conf out of its intended usage ;-)