tomaswolf commented on issue #513:
URL: https://github.com/apache/mina-sshd/issues/513#issuecomment-2155629562

   ControlMaster is not implemented, and neither are ControlPath nor 
ControlPersist.
   
   Depending on your use case, you can just create a session, and then create 
multiple channels, as you need. Sequentially, or even in parallel. (Unless the 
server restricts the number of channels somehow, but then you'd also have a 
problem with ControlMaster connections.) Just keep the session around for as 
long as you need it. Possibly use heartbeats to prevent the peer from closing 
the session prematurely.
   
   If your use case involves multiple processes, you'd have to implement some 
mechanism akin to ControlMaster and ControlPath yourself. But note that the 
default NIO2 transport in Apache MINA SSHD uses `AsynchronousSocketChannel`s, 
which do not support using pre-existing sockets. Perhaps it might be possible 
to build something using the MINA or Netty transports, or by customizing those.
   
   (The control master would handle the SSH transport protocol including key 
exchanges and encryption/decryption, plus authentication, while all the clients 
of the master would only do the SSH connection (i.e., channel) protocol. The 
connections between the master and its clients are unencrypted, and thus had 
better be local. The two protocol layers (transport and connection) are not 
well separated in Apache MINA SSHD, so this might involve some serious 
refactoring.)
   
   


-- 
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: dev-unsubscr...@mina.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@mina.apache.org
For additional commands, e-mail: dev-h...@mina.apache.org

Reply via email to