Skip to content
This repository was archived by the owner on Jul 16, 2025. It is now read-only.
This repository was archived by the owner on Jul 16, 2025. It is now read-only.

SSH KEY issues in netopeer #185

Description

@zyboy2000

A netconf client(ODL), it updates the key once an hour, There's going to be a disconnect problem.(in libnetconf1.0),libssh version 0.7.5, Print the following information,Stop in “ ”ssh_packet_newkeys: Received SSH_MSG_NEWKEYS“

[14-34-17.433] [2019/10/25 14:34:04.481545, 3] ssh_packet_socket_callback: packet: read type 30 [len=92,padding=21,comp=70,payload=70]
[14-34-17.434] [2019/10/25 14:34:04.481827, 3] ssh_packet_process: Dispatching handler for packet type 30
[14-34-17.440] [2019/10/25 14:34:04.481853, 3] ssh_packet_kexdh_init: Received SSH_MSG_KEXDH_INIT
[14-34-17.444] [2019/10/25 14:34:04.493972, 2] ssh_server_ecdh_init: SSH_MSG_KEXDH_REPLY sent
[14-34-17.448] [2019/10/25 14:34:04.495248, 3] packet_send2: packet: wrote [len=636,padding=7,comp=628,payload=628]
[14-34-17.452] [2019/10/25 14:34:04.495860, 3] packet_send2: packet: wrote [len=12,padding=10,comp=1,payload=1]
[14-34-17.458] [2019/10/25 14:34:04.497518, 2] ssh_server_ecdh_init: SSH_MSG_NEWKEYS sent
[14-34-17.460] [2019/10/25 14:34:04.497840, 3] ssh_socket_unbuffered_write: Enabling POLLOUT for socket
[14-34-17.472] [2019/10/25 14:34:04.548692, 3] ssh_packet_socket_callback: packet: read type 21 [len=28,padding=26,comp=1,payload=1]
[14-34-17.473] [2019/10/25 14:34:04.548935, 3] ssh_packet_process: Dispatching handler for packet type 21
[14-34-17.473] [2019/10/25 14:34:04.549306, 2] ssh_packet_newkeys: Received SSH_MSG_NEWKEYS

but in libnetconf2.0, libssh is same version 0.7.5, there is not problem, Print the following information,I wanted to find the difference in this treatment, but I couldn't find it.

[13-21-46.819] [2019/10/25 13:21:23.037422, 3] ssh_packet_socket_callback: packet: read type 30 [len=92,padding=21,comp=70,payload=70]
[13-21-46.823] [2019/10/25 13:21:23.037606, 3] ssh_packet_process: Dispatching handler for packet type 30
[13-21-46.831] [2019/10/25 13:21:23.037733, 3] ssh_packet_kexdh_init: Received SSH_MSG_KEXDH_INIT
[13-21-46.831] [2019/10/25 13:21:23.054528, 2] ssh_server_ecdh_init: SSH_MSG_KEXDH_REPLY sent
[13-21-46.831] [2019/10/25 13:21:23.054744, 3] ssh_socket_unbuffered_write: Enabling POLLOUT for socket
[13-21-46.831] [2019/10/25 13:21:23.054841, 3] packet_send2: packet: wrote [len=636,padding=7,comp=628,payload=628]
[13-21-46.831] [2019/10/25 13:21:23.054943, 3] packet_send2: packet: wrote [len=12,padding=10,comp=1,payload=1]
[13-21-46.832] [2019/10/25 13:21:23.055054, 2] ssh_server_ecdh_init: SSH_MSG_NEWKEYS sent
[13-21-46.832] [2019/10/25 13:21:23.055298, 3] ssh_socket_unbuffered_write: Enabling POLLOUT for socket
[13-21-46.832] [2019/10/25 13:21:23.057264, 3] ssh_packet_socket_callback: packet: read type 21 [len=28,padding=26,comp=1,payload=1]
[13-21-46.832] [2019/10/25 13:21:23.057403, 3] ssh_packet_process: Dispatching handler for packet type 21
[13-21-46.832] [2019/10/25 13:21:23.057523, 2] ssh_packet_newkeys: Received SSH_MSG_NEWKEYS
[13-21-46.832] [2019/10/25 13:21:23.057745, 3] ssh_socket_unbuffered_write: Enabling POLLOUT for socket
[13-21-46.832] [2019/10/25 13:21:23.057885, 3] packet_send2: packet: wrote [len=28,padding=14,comp=13,payload=13]
[13-21-46.832] [2019/10/25 13:21:23.057960, 3] channel_write_common: channel_write wrote 4 bytes

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions