baiglin commented on issue #439:
URL: https://github.com/apache/mina-sshd/issues/439#issuecomment-1883411303

   Indeed this is what I relied on after your last comment:
   
   Implementing `SessionListener`
   
   `  @Override
     public void sessionCreated(Session session) {
       InetSocketAddress remoteAddress = 
(InetSocketAddress)session.getIoSession().getRemoteAddress();
       if (remoteAddress.getHostName().equals(sshdConfiguration.getHost())
           && remoteAddress.getPort() == sshdConfiguration.getPort()) {
         setupCiphers(session);
         setupMacs(session);
         setupKeyExchanges(session);
       }
     }`
   However at this stage of the exchange the user name was null in the 
exchange, so I cannot use it.
   
   Many thanks @tomaswolf for your time.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to