You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I noticed that zmq.ssh.tunnel.openssh_tunnel does not fail when it should. If I just call:
importtimeimportzmqimportzmq.sshctx=zmq.Context()
publisher=ctx.socket(zmq.PUB)
ssh_tunnel_pid=zmq.ssh.tunnel_connection(
socket=publisher,
addr="tcp://127.0.0.7:43777",
server="localhostA", # mind the typopassword=None,
keyfile=None)
time.sleep(10)
there will be no error. However, on line 230 in zmq/ssh/tunnel.py:
tunnel=pexpect.spawn(cmd, env=env)
, the value of cmd is: ssh -f -S none -L 127.0.0.1:47209:127.0.0.7:43777 localhostA sleep 60
If I execute this command in my bash, I get: ssh: Could not resolve hostname localhosta: Name or service not known
Before I dive deeper and get myself familiar with pexpect to try to fix the bug (and submit a patch), could you give me any pointers what might cause this problem? Is this maybe expected behavior?
Thank you very much for your time!
The text was updated successfully, but these errors were encountered:
Hi!
I noticed that zmq.ssh.tunnel.openssh_tunnel does not fail when it should. If I just call:
there will be no error. However, on line 230 in zmq/ssh/tunnel.py:
, the value of
cmd
is:ssh -f -S none -L 127.0.0.1:47209:127.0.0.7:43777 localhostA sleep 60
If I execute this command in my bash, I get:
ssh: Could not resolve hostname localhosta: Name or service not known
Before I dive deeper and get myself familiar with
pexpect
to try to fix the bug (and submit a patch), could you give me any pointers what might cause this problem? Is this maybe expected behavior?Thank you very much for your time!
The text was updated successfully, but these errors were encountered: