We have a CentOS 7 server running an application that uses telnet. Instead of opening up the port to allow direct telnet acccess we'd like a more secure option of users using SSH to login and connect to telnet from there.
However, these users don't need access to anything else, at all. Thus I was wondering if it is possible to either create a custom shell that automatically opens up the telnet interface, or to limit a shell to only allow the telnet command.
Ofcourse if there are other, better, solutions available I'd love to hear about those too!
The specific command they'd need access to is:
telnet <ip> 25568
<ip> would be one of the few local ip adresses configured