in reply to Re^3: Passing telnet commands through SSH
in thread Passing telnet commands through SSH

Is netcat or socat or any other similar utility available on the remote side? you can use then to forward stdio to some remote TCP server.

If Perl (or any other scripting language) is available on the remote side, you could also write your own netcat. See golf challenge: one-liner netcat clone