Originally Posted by tonj
I'm been searching on google but I can't find a telnet command example that incorporates the username and password all in one command. I know how to telnet in to another machine but it always stops and asks me for the password which i then type in.
I figured there must be a way to include the username and password in the telnet command so it logs me in in one go but I haven't found any example. Can this be done?
not with something as simple as telnet. That's because telnet is designed to be "dumb" and totally protocol ignorant - telnet just establishes a connection, but nothing else. A login with username and password, however, is protocol specific, and therefore beyond the scope of telnet.
I guess you want to log in to a remote shell like bash or something? Maybe ssh is an alternative, especially as telnet would transmit all data (including a password) unencrypted and thus unprotected, while ssh establishes an SSL connection. That's why the use of telnet is often discouraged.
[X] Doc CPU