Skip to content

Commit

Permalink
session server UPDATE add more debug messages
Browse files Browse the repository at this point in the history
  • Loading branch information
michalvasko committed Oct 30, 2024
1 parent bd6957f commit 1ee3afb
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/session_server_ssh.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down Expand Up @@ -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);
Expand Down Expand Up @@ -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);
}
Expand Down

0 comments on commit 1ee3afb

Please sign in to comment.