You can do ssh to a box with bah.libssh2. Now, I realise that this is not strictly telnet, but it can achieve similar results if you do not require a proper "interactive" environment. The provided example demonstrates secure login, issuing of a environment variable change, and calling "ls" on the remote server, returning the result.
Sure the communication level is a tad "low", but it does work.
Otherwise, I've also had difficulty finding a good, free telnet library. (which is why I decided to do libssh2, for the similar functionality).
|