Hi,
I rebuilt mangoh yellow image following this link: Rebuild Yocto for wp77xx
I could add 3dparty libraries and all but now I’m facing a problem with SFTP on curl and libssh2.
Curl has been built with libssh2 in order to support SFTP.
When I try to connect to my sftp server I’m always getting the error: “Failure establishing ssh session” corresponding to libssh2 error code -43 and error 2 on curl.
This error happens when calling libssh2_session_handshake function.
Here logs on sftp server side:
Aug 4 11:45:36 ubuntu sshd[26729]: debug3: fd 5 is not O_NONBLOCK
Aug 4 11:45:36 ubuntu sshd[26729]: debug1: Forked child 26853.
Aug 4 11:45:36 ubuntu sshd[26729]: debug3: send_rexec_state: entering fd = 8 config len 1016
Aug 4 11:45:36 ubuntu sshd[26729]: debug3: ssh_msg_send: type 0
Aug 4 11:45:36 ubuntu sshd[26729]: debug3: send_rexec_state: done
Aug 4 11:45:36 ubuntu sshd[26853]: debug3: oom_adjust_restore
Aug 4 11:45:36 ubuntu sshd[26853]: debug1: Set /proc/self/oom_score_adj to 0
Aug 4 11:45:36 ubuntu sshd[26853]: debug1: rexec start in 5 out 5 newsock 5 pipe 7 sock 8
Aug 4 11:45:36 ubuntu sshd[26853]: debug1: inetd sockets after dupping: 3, 3
Aug 4 11:45:36 ubuntu sshd[26853]: Connection from 192.168.2.2 port 44066 on 192.168.2.3 port 22
Aug 4 11:45:36 ubuntu sshd[26853]: debug1: Client protocol version 2.0; client software version libssh2_1.7.0
Aug 4 11:45:36 ubuntu sshd[26853]: debug1: no match: libssh2_1.7.0
Aug 4 11:45:36 ubuntu sshd[26853]: debug1: Enabling compatibility mode for protocol 2.0
Aug 4 11:45:36 ubuntu sshd[26853]: debug1: Local version string SSH-2.0-OpenSSH_7.2p2 Ubuntu-4ubuntu2.10
Aug 4 11:45:36 ubuntu sshd[26853]: debug2: fd 3 setting O_NONBLOCK
Aug 4 11:45:36 ubuntu sshd[26853]: debug2: Network child is on pid 26854
Aug 4 11:45:36 ubuntu sshd[26853]: debug3: preauth child monitor started
Aug 4 11:45:36 ubuntu sshd[26853]: debug3: privsep user:group 121:65534 [preauth]
Aug 4 11:45:36 ubuntu sshd[26853]: debug1: permanently_set_uid: 121/65534 [preauth]
Aug 4 11:45:36 ubuntu sshd[26853]: debug3: list_hostkey_types: ssh-dss key not permitted by HostkeyAlgorithms [preauth]
Aug 4 11:45:36 ubuntu sshd[26853]: debug1: list_hostkey_types: ssh-rsa,rsa-sha2-512,rsa-sha2-256,ecdsa-sha2-nistp256,ssh-ed25519 [preauth]
Aug 4 11:45:36 ubuntu sshd[26853]: debug3: send packet: type 20 [preauth]
Aug 4 11:45:36 ubuntu sshd[26853]: debug1: SSH2_MSG_KEXINIT sent [preauth]
Aug 4 11:45:36 ubuntu sshd[26853]: Connection reset by 192.168.2.2 port 44066 [preauth]
Aug 4 11:45:36 ubuntu sshd[26853]: debug1: do_cleanup [preauth]
Aug 4 11:45:36 ubuntu sshd[26853]: debug3: PAM: sshpam_thread_cleanup entering [preauth]
Aug 4 11:45:36 ubuntu sshd[26853]: debug1: monitor_read_log: child log fd closed
Aug 4 11:45:36 ubuntu sshd[26853]: debug3: mm_request_receive entering
Aug 4 11:45:36 ubuntu sshd[26853]: debug1: do_cleanup
Aug 4 11:45:36 ubuntu sshd[26853]: debug3: PAM: sshpam_thread_cleanup entering
Aug 4 11:45:36 ubuntu sshd[26853]: debug1: Killing privsep child 26854
Aug 4 11:45:36 ubuntu sshd[26853]: debug1: audit_event: unhandled event 12
Mangoh yellow versions:
Curl version is 7.61.0
Libssh2 version is 1.8.0, I also tried with 1.7.0 but same result.
Openssl version is 1.0.2p
This works fine on a wp85 with R14 and R16.1, It also works fine trying to connect to SFTP server from another PC.
Any idea on where is coming this behavior on wp7702 and maybe how to correct it ?
Hope somebody can help.
Best regards