The ability to telnet into a Cisco switch greatly simplifies remote administration of the device. This tech-recipe describes enabling telnet logins and password protecting them.
To enable telnet logins into a Cisco switch and set the telnet password to keepout, use the following commands from configuration mode:
line vty 0 15
password keepout
login
To telnet to the switch, it must have an IP address configured.