Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements
Webcast-Catalyst9k
New Member

How do I disable Telnet on 3640?

Version 12.2(7)

I tried the following to disable telnet to our 3640:

router(config)#access-list 10 deny any

router(config)#line vty 0 4

router(config-line)#access-class 10 in

router(config-line)#access-class 10 out

Of course - this disabled ssh connection as well. I didn't save to mem, so I was able to reload.

How can I take care of just telnet connections?

Thanks.

1 ACCEPTED SOLUTION

Accepted Solutions
Silver

Re: How do I disable Telnet on 3640?

If you use the transport input command and just specify what you want to use to connect. By default this is "transport input all".. so it would look something like this for ssh. (assuming you have ssh already setup on the router)

conf t

line vty 0 4

transport input ssh

Try this without the access-class on your vty lines first to make sure you get the proper function.. then you can apply them if you would like to further limit who can get logged in. You'll need to permit something in your access-list or you'll cut off everything, as you found out I guess..

Hope this helps you,

Don

1 REPLY
Silver

Re: How do I disable Telnet on 3640?

If you use the transport input command and just specify what you want to use to connect. By default this is "transport input all".. so it would look something like this for ssh. (assuming you have ssh already setup on the router)

conf t

line vty 0 4

transport input ssh

Try this without the access-class on your vty lines first to make sure you get the proper function.. then you can apply them if you would like to further limit who can get logged in. You'll need to permit something in your access-list or you'll cut off everything, as you found out I guess..

Hope this helps you,

Don

97
Views
0
Helpful
1
Replies
CreatePlease to create content