12-13-2004 09:56 AM - edited 03-09-2019 09:44 AM
Hey guys, I upgraded my IOS this morning so that I can enable ssh server. I have ssh configured and am able to establish a connection via ssh. My question is, how do I disable telnet?
Thanks in advance,
Troy
12-13-2004 10:12 AM
This seemed to work for me to disable telnet w/ ssh enabled.
conf t
line vty 0 4
transport input ssh
Can no longer telnet now.
12-14-2004 12:54 AM
Also, if you are paranoid you could add an access-list to your VTY line only allowing SSH with an explicit "deny ip any any log" to log any other attempts to connect to the VTY by protocols other than SSH.
Rgds
Paddy
12-16-2004 12:03 PM
The access-class which is applied to the vty ports to limit access is almost always a standard access list which can not check for protocols. It is possible to use an extended access list in an access-class but it is quite tricky and some of the things that it takes to make it work are not intuuitively obvious.
I believe that the transport input ssh is the optimum solution for this.
HTH
Rick
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide