channel - libssh 0.7.2 unable to execute command on QNX : UNKNOWN SSH_MSG_GLOBAL_REQUEST -


i'm writing application using libssh 0.7.2 makes ssh connection qnx virtual machine start application.

the control flow happens following :

ssh_connnect() -> ssh_channel_open_session() -> ssh_channel_request_exec("my_app_name").

i got ssh_ok return value callings. verify command executed list current processes running on qnx , not find "my_app_name".

here log ssh activities:

log ssh_connect()

[2017/07/25 15:45:23.029846, 2] ssh_connect: libssh 0.7.2 (c) 2003-2014 aris adamantiadis, andreas schneider, , libssh contributors. distributed under lgpl, please refer copying file information rights, using threading threads_noop

[2017/07/25 15:45:23.030846, 2] ssh_socket_connect: nonblocking connection socket: 740 [2017/07/25 15:45:23.031346, 2] ssh_connect: socket connecting, waiting callbacks work

[2017/07/25 15:45:23.031846, 1] socket_callback_connected: socket connection callback: 1 (0)

[2017/07/25 15:45:23.037847, 1] ssh_client_connection_callback: ssh server banner: ssh-2.0-openssh_7.4 qnx_secure_shell-20161225

[2017/07/25 15:45:23.039347, 1] ssh_analyze_banner: analyzing banner: ssh-2.0-openssh_7.4 qnx_secure_shell-20161225

[2017/07/25 15:45:23.040848, 1] ssh_analyze_banner: talking openssh client version: 7.4 (70400)

[2017/07/25 15:45:23.235887, 2] ssh_packet_dh_reply: received ssh_kexdh_reply

[2017/07/25 15:45:23.237887, 2] ssh_client_curve25519_reply: ssh_msg_newkeys sent

[2017/07/25 15:45:23.238387, 2] ssh_packet_newkeys: received ssh_msg_newkeys

[2017/07/25 15:45:23.241888, 2] ssh_packet_newkeys: signature verified , valid

log ssh_channel_open_session()

[2017/07/25 15:45:35.132766, 2] channel_open: creating channel 43 64000window , 32768 max packet

[2017/07/25 15:45:35.133766, 2] ssh_packet_global_request: received ssh_msg_global_request packet

[2017/07/25 15:45:35.134266, 2] ssh_packet_global_request: unknown ssh_msg_global_request hostkeys-00@openssh.com 0

[2017/07/25 15:45:35.135766, 1] ssh_packet_process: couldn't packet type 80

[2017/07/25 15:45:35.136266, 2] ssh_packet_channel_open_conf: received channel_open_confirmation channel 43:0 [2017/07/25 15:45:35.136766, 2] ssh_packet_channel_open_conf: remote window : 0, maxpacket : 32768

log ssh_channel_request_exec()

[2017/07/25 15:45:35.357811, 2] channel_rcv_change_window: adding 32768 bytes channel (43:0) (from 0 bytes)

[2017/07/25 15:45:35.358311, 2] channel_request: channel request exec success

i got unknown ssh_msg_global_request when doing ssh_channel_open_session() , trying google not have outcomes.

can please make diagnostics based on log?.

many thanks.

i did more tests , got same log command executed (c). problem qnx command not problem libssh. libssh did job.


Comments

Popular posts from this blog

html - How to set bootstrap input responsive width? -

javascript - Highchart x and y axes data from json -

javascript - Get js console.log as python variable in QWebView pyqt -