You get a bonus - 1 coin for daily activity. Now you have 1 coin

Cisco and "Kerberos: No default realm defined for Kerberos!"

Practice



So, you log in to a Cisco device via telnet and get this message:

Username: Kerberos: No default realm defined for Kerberos!

In fact, if you don't bother about it and just enter your login and password, the device will let you in. But it's unpleasant and inconvenient to get this junk every time.


Why?

Because "smart" telnet tries to log in automatically, i.e. it sends a Kerberos request to the Cisco device. And the Cisco device, which doesn't have a Kerberos realm configured, complains that this protocol isn't configured on it.

This feature is called "autologin" in telnet, and its purpose is fairly symbolic.


How to get rid of the error?

1) One-time way:

$ telnet -K 10.0.0.1
where, instead of 10.0.0.1, specify the IP or hostname of the device you are connecting to.

The -K option disables the autologin feature for the duration of this connection, so you won't get the error message from Cisco.


2) Permanent way:

Create a file called .telnetrc in your home directory with the following content (or edit it if it already exists):
DEFAULT
unset autologin

This will enable the -K option (i.e. disable autologin) for all hosts on a permanent basis.

Comments

To leave a comment

If you have any suggestion, idea, thanks or comment, feel free to write. We really value feedback and are glad to hear your opinion.
To reply

Lectures and tutorial on "Computer networks"

Terms: Computer networks