-
Notifications
You must be signed in to change notification settings - Fork 73
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
KeyExchangeError exception #130
Comments
Would need a libssh2 trace to say what the issue is. Would think the server is using a configuration libssh2 does not support. |
Ok, how I can trace libssh2 connection? |
Additional info:
|
Tracing functionality is not merged into master yet, will show code to enable libssh2 tracing then. It will also need to be compiled into libssh2. |
Looking at debug above, looks like The Openssh client is also using different client key type, might not be related. |
If this is an old cisco router is too possible that KexAlghoritms were different to the system default. take into consideration the next trace: Nov 17 06:38:21.680: SSH2 3: SSH2_MSG_KEX_DH_GEX_REQUEST received |
I have the same error, connecting to an CentOS8 stream system. Normal ssh connection will work.
libssh2: libssh2-1.9.0-7.fc34.x86_64 server log: It looks like libssh2 don't support modern ciphers. |
Thanks for the feedback. There is a new version of libssh2 available, will re-test once ssh2-python has been updated. The above does not appear to be the same issue though. |
In the meantime, I have switched to ssh-python, which will use libssh instant of libssh2. Here the new ciphers will work. |
Use the high level clients in parallel-ssh instead of either ssh-python or ssh2-python directly. Unless you are feeling particularly masochistic. |
if an openssh system, sshd_config can support libssh2 with |
Bug reports
Steps to reproduce:
Python 3.8.3 (default, Jun 18 2020, 20:51:40)
[GCC 4.8.5 20150623 (Red Hat 4.8.5-39)] on linux
Type "help", "copyright", "credits" or "license" for more information.
Additional info: [
libssh2
version 0.23.0, RHEL7]Hi!
Getting a KeyExchangeError while connecting to old Cisco router.
Any ideas how to fix that?
The text was updated successfully, but these errors were encountered: