У меня два компьютера, подключенных к одной сети Wi-Fi.
Я скопировал s sh ключи на рабочий компьютер: ssh-copy-id computer2@192.168.5.14
And I run `dask-ssh` on the `computer1`:
dask-ssh \
--scheduler localhost \
--nprocs 2 \
--nthreads 2 \
--ssh-username computer2 \
--ssh-private-key ~/.ssh/id_rsa 192.168.5.14
Но возникают ошибки:
➜ dask-ssh \
--scheduler localhost \
--nprocs 2 \
--nthreads 2 \
--ssh-username computer2 \
--ssh-private-key ~/.ssh/id_rsa 192.168.5.14
---------------------------------------------------------------
Dask.distributed v2.16.0
Worker nodes:
0: 192.168.5.14
scheduler node: localhost:8786
---------------------------------------------------------------
Unknown exception: q must be exactly 160, 224, or 256 bits long
Traceback (most recent call last):
File "/Users/computer1/opt/miniconda3/lib/python3.7/site-packages/paramiko/transport.py", line 2109, in run
handler(self.auth_handler, m)
File "/Users/computer1/opt/miniconda3/lib/python3.7/site-packages/paramiko/auth_handler.py", line 298, in _parse_service_accept
sig = self.private_key.sign_ssh_data(blob)
File "/Users/computer1/opt/miniconda3/lib/python3.7/site-packages/paramiko/dsskey.py", line 116, in sign_ssh_data
).private_key(backend=default_backend())
File "/Users/computer1/opt/miniconda3/lib/python3.7/site-packages/cryptography/hazmat/primitives/asymmetric/dsa.py", line 243, in private_key
return backend.load_dsa_private_numbers(self)
File "/Users/computer1/opt/miniconda3/lib/python3.7/site-packages/cryptography/hazmat/backends/openssl/backend.py", line 652, in load_dsa_private_numbers
dsa._check_dsa_private_numbers(numbers)
File "/Users/computer1/opt/miniconda3/lib/python3.7/site-packages/cryptography/hazmat/primitives/asymmetric/dsa.py", line 142, in _check_dsa_private_numbers
_check_dsa_parameters(parameters)
File "/Users/computer1/opt/miniconda3/lib/python3.7/site-packages/cryptography/hazmat/primitives/asymmetric/dsa.py", line 134, in _check_dsa_parameters
raise ValueError("q must be exactly 160, 224, or 256 bits long")
ValueError: q must be exactly 160, 224, or 256 bits long
Exception in thread Thread-1:
Traceback (most recent call last):
File "/Users/computer1/opt/miniconda3/lib/python3.7/threading.py", line 917, in _bootstrap_inner
self.run()
File "/Users/computer1/opt/miniconda3/lib/python3.7/threading.py", line 865, in run
self._target(*self._args, **self._kwargs)
File "/Users/computer1/opt/miniconda3/lib/python3.7/site-packages/distributed/deploy/old_ssh.py", line 57, in async_ssh
banner_timeout=20,
File "/Users/computer1/opt/miniconda3/lib/python3.7/site-packages/paramiko/client.py", line 446, in connect
passphrase,
File "/Users/computer1/opt/miniconda3/lib/python3.7/site-packages/paramiko/client.py", line 680, in _auth
self._transport.auth_publickey(username, key)
File "/Users/computer1/opt/miniconda3/lib/python3.7/site-packages/paramiko/transport.py", line 1580, in auth_publickey
return self.auth_handler.wait_for_response(my_event)
File "/Users/computer1/opt/miniconda3/lib/python3.7/site-packages/paramiko/auth_handler.py", line 236, in wait_for_response
raise e
File "/Users/computer1/opt/miniconda3/lib/python3.7/site-packages/paramiko/transport.py", line 2109, in run
handler(self.auth_handler, m)
File "/Users/computer1/opt/miniconda3/lib/python3.7/site-packages/paramiko/auth_handler.py", line 298, in _parse_service_accept
sig = self.private_key.sign_ssh_data(blob)
File "/Users/computer1/opt/miniconda3/lib/python3.7/site-packages/paramiko/dsskey.py", line 116, in sign_ssh_data
).private_key(backend=default_backend())
File "/Users/computer1/opt/miniconda3/lib/python3.7/site-packages/cryptography/hazmat/primitives/asymmetric/dsa.py", line 243, in private_key
return backend.load_dsa_private_numbers(self)
File "/Users/computer1/opt/miniconda3/lib/python3.7/site-packages/cryptography/hazmat/backends/openssl/backend.py", line 652, in load_dsa_private_numbers
dsa._check_dsa_private_numbers(numbers)
File "/Users/computer1/opt/miniconda3/lib/python3.7/site-packages/cryptography/hazmat/primitives/asymmetric/dsa.py", line 142, in _check_dsa_private_numbers
_check_dsa_parameters(parameters)
File "/Users/computer1/opt/miniconda3/lib/python3.7/site-packages/cryptography/hazmat/primitives/asymmetric/dsa.py", line 134, in _check_dsa_parameters
raise ValueError("q must be exactly 160, 224, or 256 bits long")
ValueError: q must be exactly 160, 224, or 256 bits long
[ worker 192.168.5.14 ] : /Users/computer1/opt/miniconda3/bin/python -m distributed.cli.dask_worker localhost:8786 --nthreads 2 --nprocs 2 --host 192.168.5.14 --memory-limit auto
Exception in thread Thread-2:
Traceback (most recent call last):
File "/Users/computer1/opt/miniconda3/lib/python3.7/threading.py", line 917, in _bootstrap_inner
self.run()
File "/Users/computer1/opt/miniconda3/lib/python3.7/threading.py", line 865, in run
self._target(*self._args, **self._kwargs)
File "/Users/computer1/opt/miniconda3/lib/python3.7/site-packages/distributed/deploy/old_ssh.py", line 201, in async_ssh
channel.send(b"\x03") # Ctrl-C
File "/Users/computer1/opt/miniconda3/lib/python3.7/site-packages/paramiko/channel.py", line 801, in send
return self._send(s, m)
File "/Users/computer1/opt/miniconda3/lib/python3.7/site-packages/paramiko/channel.py", line 1198, in _send
raise socket.error("Socket is closed")
OSError: Socket is closed
[ worker 192.168.5.14 ] : bash: /Users/computer1/opt/miniconda3/bin/python: No such file or directory
[ worker 192.168.5.14 ] : remote process exited with exit status 127
Версии библиотеки:
➜ pip freeze | grep paramiko
paramiko==2.7.1
➜ pip freeze | grep dask
dask==2.16.0
dask-glm==0.2.0
dask-ml==1.1.1
➜ pip freeze | grep distributed
distributed==2.16.0