Tsh is a pseudo-shell i needed for a telnet account on my gateway machine, whose shell should ask for a hostname and then open a telnet session to this host or close the connection if this host isn't authorized to be telnetted to.
Tsh2 is somewhat more sophisticated, you have to define a command to be executed along with any arguments needed in the configuration file. Look at the source for information regarding configuration file format.