My requirement is like this..
1)i will be able to ssh the router and restrcited to telnet.
2)once i'll get in to the router i can telnet to the switch from the same session.
I have applied the below given commands
Line VTY 0 4
TRANSPORT INPUT TELNET SSH
TRANSPORT OUTPUT TELNET SSH
but after this i can also telnet the router, but if i remove telnet i will not be able to telnet the switch.
any help will be appriciated.
line vty 0 4
transport input ssh ---- this will restrict telnet into this device
transport output telnet --- this will allow telnet to be initiated from this device
In addition you can restrict the machines that can gain access via the access-class command as suggested above