Several things are wrong with this:
- DO NOT EVER USE TELNET.
Seriously. Don't do this. It sends your user/pass in plain text. It's a horrendous security risk. I don't care what excuse you have to try to defend it. DO NOT DO IT. Use ssh keys instead.
I agree but some devices doesn't support ssh such as Routers, Embedded systems.