From 4edf45e46f26ae7aecbb7eb7e0514c98f8e79283 Mon Sep 17 00:00:00 2001 From: cy384 Date: Sun, 4 Oct 2020 12:21:01 -0400 Subject: [PATCH] print server banner --- ssheven.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ssheven.c b/ssheven.c index d76313f..05d6ce9 100644 --- a/ssheven.c +++ b/ssheven.c @@ -715,6 +715,9 @@ int init_connection(char* hostname) printf_i("done. (%d ticks)\r\n", TickCount() - s); YieldToAnyThread(); + const char* banner = libssh2_session_banner_get(ssh_con.session); + if (banner) printf_i("Server banner: %s\r\n", banner); + read_thread_state = OPEN; return 1;