libssh2_session_banner_get(3)

libssh2_session_banner_get3

Get the remote banner

Usage

#include <libssh2.h>
const char *
libssh2_session_banner_get(oLIBSSH2_SESSION *session);

Overview

Once the session has been setup and libssh2_session_handshake(3) has completed successfully, this function can be used to get the server id from the banner each server presents.

Return value

A pointer to a string or NULL if something failed. The data pointed to will be allocated and associated to the session handle and will be freed by libssh2 when libssh2_session_free(3) is used.

Releases

8 releases since Debian 7 (Wheezy); the text changed 1 time.

  1. 7–12
  2. 13–Arch

Availability

Added in 1.4.0

From libssh2 1.11.1-7 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.