-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SSH cannot establish connection, push(Windows) #3652
Comments
Hi @Sunny-Day200 ! Havent seen that error before. Maybe something is off with your certificates? E.g. paramiko/paramiko#750 seems similar. |
This comment has been minimized.
This comment has been minimized.
Closing as stale. |
Hi all, It was quite confusing. And I found out that although I already specified the user/pwd, it still collected a private key file ( Turns out, I had my
And that's why the It is a dumb situation. Write it down just in case if there is someone has the same problem. |
This solved it for me, too. Thanks for the update! Though honestly, I don't like removing it there, as there was a reason I set up my ssh config like that. Seems like there should be some sort of fallback mechanism to this. |
@tomasfarias Unfortunately there is not much we can do with paramiko right now 🙁 We are considering diversifying our ssh backends in the future to allow using real ssh or libssh as an alternative to paramiko. |
This worked for me as well, thanks @jadore801120 ! |
Hi I have experiencing the same inconvenience even on the latest paramiko version. |
dvc-0.92.0 windows.exe
$ dvc push left
Unknown exception: q must be exactly 160, 224, or 256 bits long
Unknown exception: q must be exactly 160, 224, or 256 bits long
Unknown exception: q must be exactly 160, 224, or 256 bits long
Traceback (most recent call last):
File "site-packages\paramiko\transport.py", line 2109, in run
File "site-packages\paramiko\auth_handler.py", line 298, in _parse_service_accept
File "site-packages\paramiko\dsskey.py", line 116, in sign_ssh_data
Unknown exception: q must be exactly 160, 224, or 256 bits long
File "site-packages\cryptography\hazmat\primitives\asymmetric\dsa.py", line 243, in private_key
Traceback (most recent call last):
File "site-packages\cryptography\hazmat\backends\openssl\backend.py", line 657, in load_dsa_private_numbers
Traceback (most recent call last):
File "site-packages\paramiko\transport.py", line 2109, in run
File "site-packages\cryptography\hazmat\primitives\asymmetric\dsa.py", line 142, in _check_dsa_private_numbers
File "site-packages\paramiko\transport.py", line 2109, in run
File "site-packages\paramiko\auth_handler.py", line 298, in _parse_service_accept
File "site-packages\cryptography\hazmat\primitives\asymmetric\dsa.py", line 134, in _check_dsa_parameters
File "site-packages\paramiko\auth_handler.py", line 298, in _parse_service_accept
Traceback (most recent call last):
File "site-packages\paramiko\dsskey.py", line 116, in sign_ssh_data
ValueError: q must be exactly 160, 224, or 256 bits long
File "site-packages\paramiko\dsskey.py", line 116, in sign_ssh_data
File "site-packages\paramiko\transport.py", line 2109, in run
File "site-packages\cryptography\hazmat\primitives\asymmetric\dsa.py", line 243, in private_key
File "site-packages\cryptography\hazmat\primitives\asymmetric\dsa.py", line 243, in private_key
File "site-packages\paramiko\auth_handler.py", line 298, in _parse_service_accept
File "site-packages\cryptography\hazmat\backends\openssl\backend.py", line 657, in load_dsa_private_numbers
File "site-packages\cryptography\hazmat\backends\openssl\backend.py", line 657, in load_dsa_private_numbers
File "site-packages\paramiko\dsskey.py", line 116, in sign_ssh_data
File "site-packages\cryptography\hazmat\primitives\asymmetric\dsa.py", line 142, in _check_dsa_private_numbers
File "site-packages\cryptography\hazmat\primitives\asymmetric\dsa.py", line 142, in _check_dsa_private_numbers
File "site-packages\cryptography\hazmat\primitives\asymmetric\dsa.py", line 243, in private_key
File "site-packages\cryptography\hazmat\primitives\asymmetric\dsa.py", line 134, in _check_dsa_parameters
File "site-packages\cryptography\hazmat\primitives\asymmetric\dsa.py", line 134, in _check_dsa_parameters
File "site-packages\cryptography\hazmat\backends\openssl\backend.py", line 657, in load_dsa_private_numbers
ValueError: q must be exactly 160, 224, or 256 bits long
ValueError: q must be exactly 160, 224, or 256 bits long
File "site-packages\cryptography\hazmat\primitives\asymmetric\dsa.py", line 142, in _check_dsa_private_numbers
File "site-packages\cryptography\hazmat\primitives\asymmetric\dsa.py", line 134, in _check_dsa_parameters
ValueError: q must be exactly 160, 224, or 256 bits long
ERROR: unexpected error - q must be exactly 160, 224, or 256 bits long
Having any troubles? Hit us up at https://dvc.org/support, we are always happy to help!
The text was updated successfully, but these errors were encountered: