Disable Telnet

Unanswered Question
Dec 13th, 2004
User Badges:

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,


  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 0 (0 ratings)
tdg911 Mon, 12/13/2004 - 10:12
User Badges:

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.

paddyxdoyle Tue, 12/14/2004 - 00:54
User Badges:
  • Silver, 250 points or more

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.



Richard Burts Thu, 12/16/2004 - 12:03
User Badges:
  • Super Silver, 17500 points or more
  • Hall of Fame,

    Founding Member

  • Cisco Designated VIP,

    2017 LAN, WAN

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.




This Discussion