[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
How do I get the remote address and port of a SSH client connecting to a SSH server?
[Thread Prev] | [Thread Next]
- Subject: How do I get the remote address and port of a SSH client connecting to a SSH server?
- From: Nicolas Lykke Iversen <nlykkei@xxxxxxxxx>
- Reply-to: libssh@xxxxxxxxxx
- Date: Fri, 21 Jul 2017 14:11:10 +0200
- To: libssh@xxxxxxxxxx
I've a working SSH client and server written using libssh. On the server side, I would like to know the address and port of the client once it has connected. Looking through ssh_bind and ssh_session, I can get the address and port on which the server listens. However, I cannot find any fields to get the address and port of the connected client? How do I get the address and port of the connected client on the server side? -Nicolas
Re: How do I get the remote address and port of a SSH client connecting to a SSH server? | Stef Bon <stefbon@xxxxxxxxx> |