This scenario falls somewhat outside of what Rebex File Server and it's build-in simple shell was designed to do. Basically, you would have to handle the whole SSH shell yourself. Our SSH client objects such as
VirtualTerminal most likely won't be suitable for this scenario either.
Please check out How to execute an external process using Rebex SSH Server - the same approach outlined in the reply would be suitable for your scenario as well. Just instead of executing
hg, you would either execute a custom shell application that provides the functionality you need (such as
telnet commands), or implement that functionality in the same .NET application.
But unfortunately, this means you would have to implement the whole custom shell logic, because our simple virtual shell is not powerful enough to handle this, and there are no near-term plans to extend it.