Ticket #145 (closed)

Opened 9 years ago

Last modified 8 years ago

Check Remote SSH2 Banner

Reported by: volkan-k Owned by:
Priority: low Milestone:
Component: Version:
Keywords: Cc: volkan-k, bagder
Blocked By: Blocks:


I think, library should check remote banner to validate the protocol...

example for libssh2_banner_receive function:

/* check remote banner */
char *std_banner_head = "SSH-2.0";
if (strstr(session->remote.banner, std_banner_head)==NULL)

libssh2_error(session, LIBSSH2_ERROR_BANNER_NONE,

"No SSH2 banner", 0);



Change History

comment:1 Changed 8 years ago by bagder

This seems to have very little purpose to me. How would libssh2 succeed to otherwise negotiate a connection if it isn't SSH2 compliant enough anyway?

comment:2 Changed 8 years ago by sf-robot

This Tracker item was closed automatically by the system. It was
previously set to a Pending status, and the original submitter
did not respond within 14 days (the time period specified by
the administrator of this Tracker).

Note: See TracTickets for help on using tickets.