Does it come from a file like /etc/issue or if on Windows, what might it search 
for?

--
Alexander Grotewohl
https://dcclost.com
________________________________
From: Andreas Schneider <a...@cryptomilk.org>
Sent: Friday, March 27, 2020 1:22:23 AM
To: libssh@libssh.org <libssh@libssh.org>
Cc: Alexander Grotewohl <a...@dcclost.com>
Subject: Re: Issue banner, IP of clients

On Monday, 23 March 2020 20:02:38 CET Alexander Grotewohl wrote:
> Hello everyone,
>
> I have a couple hopefully quick questions that I've been scratching my head
> on.
>
> A) I haven't been able to find a way to send an "issue banner" to a client
> when acting as a server. Is there a function or a variable to set
> somewhere?

This is done automatically by the server once a client connects. It is part of
the Key Exchange.

> B) I can retrieve the client IP from the socket fd. Is there another
> API-like place this IP is stored that I can use for
> logging/blacklisting/etc?

getpeername() ?


Cheers!


--
Andreas Schneider                 a...@cryptomilk.org
GPG-ID:     8DFF53E18F2ABC8D8F3C92237EE0FC4DCC014E3D


Reply via email to