Fails to use pagent on Windows
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
paramiko |
Confirmed
|
Medium
|
Unassigned |
Bug Description
Paramiko appears to have support for the Windows PAgent (PuTTY SSH Agent), but when I run a simple script, it gets an error:
import paramiko
client = paramiko.
client.
client.
client.
"""
Traceback (most recent call last):
File ".\agent-test.py", line 5, in <module>
client.
File "c:\python\
self.
File "c:\python\
for key in Agent().get_keys():
File "c:\python\
ptype, result = self._send_
File "c:\python\
l = self._read_all(4)
File "c:\python\
raise SSHException('lost ssh-agent')
paramiko.
"""
It seems this issue stems from the result from the call to SendMessage in win_pageant:104 or win_pageant:108. The response returned is 0, but _query_pageant fails silently.