Came here from Helium sublime-text plugin which uses pyzmq under the hood. However, I was able to replicate it with Anaconda.
Related to #676, albeit not fixed by the fix proposed for that issue.
There seems to be 2 problems with the code for the function:
try_passwordless_ssh has a while True: loop which always has potential to hang if the ssh command doesn't behave like pyzmq expects ; some max retry number should be added in there.
My ssh program (shipped with Ubuntu 22.04) doesn't behave like pyzmq expects. It has the passphrase prompt below. By contrast, the _password_pat used in try_passwordless_ssh wants "passphrase" to be immediately followed by ":"
Enter passphrase for key '/path/to/my/key/`:
I can beautify the hacky fix I have and submit it as a pull request.
What pyzmq version?
23.2.0
What libzmq version?
4.3.4
Python version (and how it was installed)
Python 3.9.13, from Anaconda
OS
Ubuntu 22.04
What happened?
The function
try_passwordless_ssh
should returnFalse
but instead, it hangs indefinitely.Code to reproduce bug
Traceback, if applicable
No response
More info
Came here from Helium sublime-text plugin which uses pyzmq under the hood. However, I was able to replicate it with Anaconda.
Related to #676, albeit not fixed by the fix proposed for that issue.
There seems to be 2 problems with the code for the function:
try_passwordless_ssh
has awhile True:
loop which always has potential to hang if thessh
command doesn't behave likepyzmq
expects ; some max retry number should be added in there.ssh
program (shipped with Ubuntu 22.04) doesn't behave likepyzmq
expects. It has the passphrase prompt below. By contrast, the_password_pat
used intry_passwordless_ssh
wants "passphrase" to be immediately followed by ":"I can beautify the hacky fix I have and submit it as a pull request.