Some of you may have an issue where when you first telnet to an MDS switch, it goes directly to the Password: prompt, skipping the login: prompt, like so:
cluebox:~ bfeeny$ telnet 172.16.3.153
Trying 172.16.3.153…
Connected to 172.16.3.153.
Escape character is ‘^]’.
Password:
Most likely you are using Mac OSX or another BSD-derived operating system which supports telnet automatic login. Telnet automatic login automatically sends the username to the remote host if it detects it supports it. From the man page:
-a Attempt automatic login. This is now the default, so this option is ignored. Currently, this sends the user name via the USER variable of the ENVIRON option if
supported by the remote system. The name used is that of the current user as returned by getlogin(2) if it agrees with the current user ID, otherwise it is the
name associated with the user ID.
You may also see this behavior on IOS switches like so:
cluebox:~ bfeeny$ telnet 172.16.3.2
Trying 172.16.3.2…
Connected to 172.16.3.2.
Escape character is ‘^]’.User Access Verification
Username: Kerberos: No default realm defined for Kerberos!
At least in IOS you can still type the Username, with MDS you must press return at the password prompt and then type the username at the next username prompt.
You can turn off the behavior of telnet automatic login using the -K option. From the man page:
-K Specifies no automatic login to the remote system.