You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
My esps have been unable to connect to the various ssh servers I have pointed them at. Is there a way to set up a known hosts file or accept the initial verification fingerprint during connection? Is there more initial setup needed than just ssh_client.connect?
Can I introduce a known_hosts from the ESP32 SPIFFS?
Is there a way to say 'yes' to the the initial handshake?
In J-Rios's Arduino-esp32sshclient,
Failure establishing SSH session: -8 is meaning that "LIBSSH2_ERROR_KEY_EXCHANGE_FAILURE" in "libssh2.h".
Check your linux sshd configuration files (/etc/ssh/sshd_config) for any of the following:
Activity
Sergio-tix commentedon Apr 18, 2020
Does not work. Used 3 different servers. Connected to Synology, Raspberry, router.
dorsetdrew commentedon Jul 25, 2020
... Same result here. Tried 3 different SSH servers, always just get the same -125 which appears to be a timeout
trebur commentedon Jul 26, 2022
i have the same problem any ideas ?
borissov commentedon Jul 30, 2022
Need to be updated libssh2 library. You can try my fork for test: http://github.com/borissov/arduino-esp32sshclient/
trebur commentedon Jul 31, 2022
Thank You i will try it
trebur commentedon Aug 5, 2022
Hi borissov,
I have tested the git lib http://github.com/borissov/arduino-esp32sshclient/ I have followed SendCommandToSSH as far as possible but I get the following error when opening the session
SSH: LIB2 Client connected before exec
Connecting to Server "192.168.6.144:22"...
SSH host connection established.
SSH session created.
Failure establishing SSH session: -8
Rebooting system now.
any ideas ? What does it it mean -8 ?
borissov commentedon Aug 5, 2022
I have no idea, I'm not sure is it updated lib properly but work with my Mac mini... I plan to rewrite my script with native libssh2 .
YundaoJing commentedon Feb 20, 2023
In J-Rios's Arduino-esp32sshclient,
Failure establishing SSH session: -8 is meaning that "LIBSSH2_ERROR_KEY_EXCHANGE_FAILURE" in "libssh2.h".
Check your linux sshd configuration files (/etc/ssh/sshd_config) for any of the following:
After I delet them, it successfully connected to ssh.
And I find that borissov's Arduino-esp32sshclient can not successfully connected to ssh without these codes in sshd_config