I want to terminate the Apache Mina Ssh Server on the basis of Ctrl+c that are basically SigInt
I searched on the google and have looked there are SignalListener
but not find any good example of it.
Please share any good example and use in ssh server.
A listener will only trigger if any Sigint or a Signal is sent, Am I right ?