Does it have to be telnet?

ssh will do this easily.