print server banner

This commit is contained in:
cy384 2020-10-04 12:21:01 -04:00
parent 462a1cfe48
commit 4edf45e46f
1 changed files with 3 additions and 0 deletions

View File

@ -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;