In this case, you can configure autocommand for a user to Telnet to the router. autocommand will execute the required command and exit the session. This way the user will not be able to keep its Telnet session:
username testconfig privilege 15 password 7 15060E1F1029242A2E3A32 username testconfig autocommand show run !
line vty 0 4 privilege level 15 password 7 110A1016141D login local
Test by Telnetting from R1 to 10.50.13.2.
User Access Verification
Username: testconfig Password: testconfig Building configuration... Current configuration : 7022 bytes !
! Last configuration change at 23:46:49 AEDT Sun Jan 19 2003
! NVRAM config last updated at 00:15:25 AEDT Mon Jan 20 2003 !
no service single-slot-reload-enable service timestamps debug uptime service timestamps log uptime service password-encryption !
hostname r3 !
[Connection to 10.50.13.2 closed by foreign host] r1#
As you can see, as soon as the show run command output finished, the session was closed.
Configure R5 Telnet access to permit host 18.104.22.168 only:
access-list 3 permit 22.214.171.124
line vty 0 4 access-class 3 in password 7 13061E010803 login
Was this article helpful?
Read how to maintain and repair any desktop and laptop computer. This Ebook has articles with photos and videos that show detailed step by step pc repair and maintenance procedures. There are many links to online videos that explain how you can build, maintain, speed up, clean, and repair your computer yourself. Put the money that you were going to pay the PC Tech in your own pocket.