[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Issue banner, IP of clients


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 <asn@xxxxxxxxxxxxxx>
Sent: Friday, March 27, 2020 1:22:23 AM
To: libssh@xxxxxxxxxx <libssh@xxxxxxxxxx>
Cc: Alexander Grotewohl <alex@xxxxxxxxxxx>
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                 asn@xxxxxxxxxxxxxx
GPG-ID:     8DFF53E18F2ABC8D8F3C92237EE0FC4DCC014E3D



Follow-Ups:
Re: Issue banner, IP of clientsAndreas Schneider <asn@xxxxxxxxxxxxxx>
References:
Issue banner, IP of clientsAlexander Grotewohl <alex@xxxxxxxxxxx>
Re: Issue banner, IP of clientsAndreas Schneider <asn@xxxxxxxxxxxxxx>
Archive administrator: postmaster@lists.cynapses.org