UNO + Ethernet + Telnet

Good afternoon,

I have days seeking information and running tests without success.
I have a Arduino Uno with ethernet shield connected to a router, this router can connect via telnet to make adjustments. These adjustments are what I need to do the Arduino.

So far I've only gotten Arduino to connect to port 23 of the router, but can not get to login with the username and password required for the router, plus not get to send one command.

I loaded the TelnetClient example modifying the ips and ports, and get this:

connecting...
connected
ÿýÿý ÿý#ÿý'

Any order is shipped via serial monitor, it does not seem to realize effect, not return any response.

I have also tried this I saw in a post in this forum, but also without results.

  client.write("auth login");
  client.write("<base64 user>");
  client.write("<base64 password>");

Does anyone know what could be happening? How I can login correctly?
I searched and searched carefully and I can not find a solution. So I decided to register and ask for help.

Greetings and thanks in advance.

This line is the telnet server sending the Arduino the telnet settings. You must respond to that correctly, then the telnet server should prompt you for the user and password in clear text.

ÿýÿý ÿý#ÿý'