On Thu, Oct 16, 2008 at 8:17 PM, Sudarshan Soma wrote:
> Can I do this easily by just putting the appropriate encrypt/decrypt
> functions , session key establishment code from ssh server to telnet
> server.


Can you do it, yes. Easily, probably not.

> Tunelling is one solution , i can think of . Is there any other easy
> alternative for this apart from changing the telnet server code.


I would suggest wrapping the connection with stunnel is probably your
best option.