config t
crypto key generate rsa
1024
!
ip access-list standard TELNET_SSH
permit (ip-address)
permit 1.1.1.1 0.0.0.7
!

line vty 0 4
 access-class TELNET_SSH in