Click here to Skip to main content
15,892,746 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have an issue in Libssh2 - 1.7.0 and/or OpenSSL 1.1.0.

When connecting through SSH using the compiled API to an old Linux box, everything is as expected.

When trying to connect to a more recent distribution, the connection fails with error: Failure establishing SSH session: -8.

I read that this error is related to the curl/libcurl version on the Linux machines, but I can't upgrade or download the curl version on them.

The same problem is raised with AIX recent versions.

Any help?
Thanks in advance,
Boris.

What I have tried:

When trying to connect to a more recent distribution, the connection fails with error: Failure establishing SSH session: -8.
Posted
Updated 30-Aug-16 2:12am

1 solution

Recent Linux distributions configure SSH servers to be more restrictive by default.

You might change the server SSH configuration (not recommended) or the authentication method used by your application (recommended).

To avoid such troubles the best solution is to use public-key authentication.

There has been also a number of version 2 ciphers disabled in the default config with OpenSSH 6.7 (see Openssh 6.7 disables a number of ciphers / Networking, Server, and Protection / Arch Linux Forums[^]).

There are even more possible reasons like firewalls. To know what is going wrong you should try to connect from a different system using an up-to-date authentication method to ensure that you can connect to the servers and inspect the log files of the servers where the connection fails.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900