libssh2_session handshake fails on VMware ESXi #1069
Unanswered
casperjSUM
asked this question in
Q&A
Replies: 1 comment
-
Hi, did you solve the problem? I am having the inability to exchange keys when running libssh2 on an ARM development board. But I can't find a solution. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Describe the bug
I'm trying to use libssh2 on a VMware ESXi system. libssh2 was built as a static library and linked to an ESXi application. After I built and ran the example/ssh2_exec on ESXi, the call to libssh2_session_handshake failed with the error "Failure establishing SSH session: (-1) Unable to exchange encryption keys"
To Reproduce
Simply build and run the ssh2_exec example code on a VMware ESXi system. The code snippet is shown below:
Run the example code, the output is:
Failure establishing SSH session: (-1) Unable to exchange encryption keys
Expected behavior
Run the same code on other Linux systems such as Ubuntu, Redhat, and CentOS. The SSH connection can be established and the remote command can be executed successfully.
Version (please complete the following information):
Additional context
Because the SSH shell command works and can connect to a remote server, I assume that it's not a system configuration issue.
Beta Was this translation helpful? Give feedback.
All reactions