Specifies which hosts can telnet/ssh into the vty.
Router(config-line)#access-class <list> <in or out>
|<in>||Applies the access-list to inbound traffic on the interface.|
|<out>||Applies the access-list to traffic leaving the router.|
In this example, an access-class is created on R2..