ProxyCommandFailure using nornir on Windows 10

Hi All,
I’m trying to start using nornir on my Windows 10 client but I’m stuck at the beginning of the connection.
I need to reach a Cisco ios Switch which is behind a Jumphost, to do so I’m using the following ssh configuration:
Host jump01-nts
IdentityFile ~/.ssh/id_rsa
HostName jump01
User user
Host 10.5.100.106
ProxyCommand ssh jump01 nc %h %p

The script itself should just get the facts from switch:
from nornir import InitNornir
from nornir.plugins.functions.text import print_result
from nornir.plugins.tasks.networking import napalm_get, netmiko_send_command
nr = InitNornir(
config_file=“config.yaml”, dry_run=True
)
results = nr.run(
task=napalm_get, getters=[“facts”]
)
print_result(results)

And here the whole traceback error:

(virl_env) user@R90R6UY8 ~/Desktop/DevNet/VIRL/nornir
$ python nornir_script1.py
Exception: ProxyCommand(“ssh jump01 nc 10.5.100.106 22”) returned nonzero exit status: Ein Vorgang bezog sich auf ein Objekt, das kein Socket
ist
Traceback (most recent call last):
File “C:\Users\user\Desktop\DevNet\VIRL\virl_env\lib\site-packages\paramiko\proxy.py”, line 107, in recv
r, w, x = select([self.process.stdout], [], [], select_timeout)
OSError: [WinError 10038] Ein Vorgang bezog sich auf ein Objekt, das kein Socket ist
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File “C:\Users\user\Desktop\DevNet\VIRL\virl_env\lib\site-packages\paramiko\transport.py”, line 2039, in run
self._check_banner()
File “C:\Users\user\Desktop\DevNet\VIRL\virl_env\lib\site-packages\paramiko\transport.py”, line 2211, in _check_banner
buf = self.packetizer.readline(timeout)
File “C:\Users\user\Desktop\DevNet\VIRL\virl_env\lib\site-packages\paramiko\packet.py”, line 380, in readline
buf += self._read_timeout(timeout)
File “C:\Users\user\Desktop\DevNet\VIRL\virl_env\lib\site-packages\paramiko\packet.py”, line 607, in _read_timeout
x = self.__socket.recv(128)
File “C:\Users\user\Desktop\DevNet\VIRL\virl_env\lib\site-packages\paramiko\proxy.py”, line 119, in recv
raise ProxyCommandFailure(" ".join(self.cmd), e.strerror)
paramiko.ssh_exception.ProxyCommandFailure: ProxyCommand(“ssh jump01 nc 10.5.100.106 22”) returned nonzero exit status: Ein Vorgang bezog sich auf ein Objekt, das kein Socket ist
Exception in thread Thread-1:
Traceback (most recent call last):
File “C:\Users\user\AppData\Local\Programs\Python\Python38\Lib\threading.py”, line 932, in _bootstrap_inner
self.run()
File “C:\Users\user\Desktop\DevNet\VIRL\virl_env\lib\site-packages\paramiko\transport.py”, line 2166, in run
napalm_get**********************************************************************self.sock.close()

  • sw2 ** changed : False ******************************************************* File “C:\Users\user\Desktop\DevNet\VIRL\virl_env\lib\site-packages\paramiko\proxy.py”, line 122, in close
    vvvv napalm_get ** changed : False vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv ERRORos.kill(self.process.pid, signal.SIGTERM)
    Traceback (most recent call last):
    File “C:\Users\user\Desktop\DevNet\VIRL\virl_env\lib\site-packages\paramiko\proxy.py”, line 107, in recv
    r, w, x = select([self.process.stdout], [], [], select_timeout)
    OSError: [WinError 10038] Ein Vorgang bezog sich auf ein Objekt, das kein Socket ist
    During handling of the above exception, another exception occurred:
    Traceback (most recent call last):
    File “C:\Users\user\Desktop\DevNet\VIRL\virl_env\lib\site-packages\nornir\core\task.py”, line 85, in start
    r = self.task(self, **self.params)
    File “C:\Users\user\Desktop\DevNet\VIRL\virl_env\lib\site-packages\nornir\plugins\tasks\networking\napalm_get.py”, line 49, in napalm_get
    device = task.host.get_connection(“napalm”, task.nornir.config)
    File “C:\Users\user\Desktop\DevNet\VIRL\virl_env\lib\site-packages\nornir\core\inventory.py”, line 294, in get_connection
    self.open_connection(
    File “C:\Users\user\Desktop\DevNet\VIRL\virl_env\lib\site-packages\nornir\core\inventory.py”, line 345, in open_connection
    self.connections[connection].open(
    File “C:\Users\user\Desktop\DevNet\VIRL\virl_env\lib\site-packages\nornir\plugins\connections\napalm.py”, line 51, in open
    connection.open()
    File “C:\Users\user\Desktop\DevNet\VIRL\virl_env\lib\site-packages\napalm\ios\ios.py”, line 168, in open
    self.device = self._netmiko_open(
    File “C:\Users\user\Desktop\DevNet\VIRL\virl_env\lib\site-packages\napalm\base\base.py”, line 90, in _netmiko_open
    self._netmiko_device = ConnectHandler(
    File “C:\Users\user\Desktop\DevNet\VIRL\virl_env\lib\site-packages\netmiko\ssh_dispatcher.py”, line 266, in ConnectHandler
    return ConnectionClass(*args, **kwargs)
    File “C:\Users\user\Desktop\DevNet\VIRL\virl_env\lib\site-packages\netmiko\base_connection.py”, line 327, in init
    self._open()
    File “C:\Users\user\Desktop\DevNet\VIRL\virl_env\lib\site-packages\netmiko\base_connection.py”, line 332, in _open
    self.establish_connection()
    File “C:\Users\user\Desktop\DevNet\VIRL\virl_env\lib\site-packages\netmiko\base_connection.py”, line 899, in establish_connection
    self.remote_conn_pre.connect(**ssh_connect_params)
    File “C:\Users\user\Desktop\DevNet\VIRL\virl_env\lib\site-packages\paramiko\client.py”, line 406, in connect
    t.start_client(timeout=timeout)
    File “C:\Users\user\Desktop\DevNet\VIRL\virl_env\lib\site-packages\paramiko\transport.py”, line 660, in start_client
    raise e
    File “C:\Users\user\Desktop\DevNet\VIRL\virl_env\lib\site-packages\paramiko\transport.py”, line 2039, in run
    self._check_banner()
    File “C:\Users\user\Desktop\DevNet\VIRL\virl_env\lib\site-packages\paramiko\transport.py”, line 2211, in _check_banner
    buf = self.packetizer.readline(timeout)
    File “C:\Users\user\Desktop\DevNet\VIRL\virl_env\lib\site-packages\paramiko\packet.py”, line 380, in readline
    buf += self._read_timeout(timeout)
    File “C:\Users\user\Desktop\DevNet\VIRL\virl_env\lib\site-packages\paramiko\packet.py”, line 607, in _read_timeout
    x = self.__socket.recv(128)
    File “C:\Users\user\Desktop\DevNet\VIRL\virl_env\lib\site-packages\paramiko\proxy.py”, line 119, in recv
    raise ProxyCommandFailure(" ".join(self.cmd), e.strerror)
    paramiko.ssh_exception.ProxyCommandFailure: ProxyCommand(“ssh jump01 nc 10.5.100.106 22”) returned nonzero exit status: Ein Vorgang bezog sich auf ein Objekt, das kein Socket ist
    PermissionError
    : [WinError 5] Zugriff verweigert^^^^ END napalm_get ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

I found a couple of topic about this socket error but nothing was helpful, the ssh connection to the switch works without problem and I can reach the Switch, the same script works fine on a Linux client.
Could someone point me in the right direction? many thanks in advance!

I am having the same issue.
Has anyone found a solution to this?