We have a server that run with certain functionality. We want to enable some users with ssh authentication so that if an ssh session is initiated by the clients on certain port to the server, the sever will provide a custom terminal which supports only very few commands we have decided to implement.
My question is: how can I listen (in cpp) to incoming ssh connections, and after successful authentication provide them a terminal application.
Is there a package that supports some of that functionality?
Thanks!