From 1ee3afb9e4b8778d42af20149081cbb68caa5cd4 Mon Sep 17 00:00:00 2001 From: Michal Vasko Date: Wed, 30 Oct 2024 12:06:26 +0100 Subject: [PATCH] session server UPDATE add more debug messages --- src/session_server_ssh.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/session_server_ssh.c b/src/session_server_ssh.c index 71a60f1f..9936d87c 100644 --- a/src/session_server_ssh.c +++ b/src/session_server_ssh.c @@ -1770,6 +1770,8 @@ nc_accept_ssh_session_open_netconf_channel(struct nc_session *session, struct nc struct timespec ts_timeout; ssh_message msg; + DBG(session, "Waiting for \"netconf\" SSH subsystem request..."); + if (timeout) { nc_timeouttime_get(&ts_timeout, timeout * 1000); } @@ -1866,6 +1868,8 @@ nc_accept_ssh_session_auth(struct nc_session *session, struct nc_server_ssh_opts ssh_message msg; struct nc_auth_state auth_state = {0}; + DBG(session, "SSH authentication..."); + /* authenticate */ if (opts->auth_timeout) { nc_timeouttime_get(&ts_timeout, opts->auth_timeout * 1000); @@ -1967,6 +1971,7 @@ nc_accept_ssh_session(struct nc_session *session, struct nc_server_ssh_opts *opt /* set to non-blocking */ ssh_set_blocking(session->ti.libssh.session, 0); + DBG(session, "Performing SSH key exchange..."); if (timeout > -1) { nc_timeouttime_get(&ts_timeout, timeout); }