Hi, The user IP address is visible in the org.apache.mina.core.session.IoSession that you can get in a filter. One solution could be put this address in a ThreadLocal singleton and grab them back in the command.
But if you want to do authentication/authorization, a filter is quite convenient. On Thu, Sep 22, 2011 at 04:55, Mark Robinson <[email protected]> wrote: > Hello all, > I am building a simple SSHD server that handles Commands. I would like for > my Command to refer to the requesting client's IP address. I can see the > client's login using the Map from the environment argument that is passed to > the Command's start method. But what about IP address? > thanks for any help! -- Frédéric Menou
