Virtual Terminal Access Lists
You can provide additional security for your system by using access lists to restrict access to vty lines.
When the system attempts to authenticate a user, it always selects the first vty line that has an access class that permits that user's host. The vty line's configuration must authenticate the user to allow access. Otherwise, the user can never gain access. Consequently, it is recommended that you use identical authentication configurations for all vtys that have the same access class list.
host1(config)#line vty 12 15host1(config-line)#access-class boston inhost1(config)#access-list boston permit anyaccess-class in
- Use to associate the access list with vty lines.
- Example - this example sets the virtual terminal lines to which you want to restrict access and specifies an access class to grant access to incoming requests.
host1(config)#line vty 12 15host1(config-line)#access-class boston inaccess-list
host1(config)#access-list boston permit any