04-27-2009 10:08 PM - edited 03-04-2019 04:33 AM
Hi all,
We have configured ssh on router and its working but, as telnet was used earlier We need to disable Telnet now unable to find the right solution. Do we need to disable line vty or ???
Please assist,
RB
Solved! Go to Solution.
04-28-2009 10:25 PM
Raj,
Sorry , I missed reading your question.
Router(config)# line vty 0 15
Router(config)# transport input ssh
This would be fine. Not sure which version of IOS you are using.
HTH,
Toshi
04-27-2009 10:58 PM
line vty 0 4
trasport preferred ssh
04-27-2009 11:06 PM
Hi,
This is my current config on line vty. still I can use both SSh and telnet.
line vty 0 4
exec-timeout 7 0
password 7 030752180500
transport preferred ssh
transport input none
Thanks for ur reply,
04-27-2009 11:35 PM
Do one thing, just add
Transport input ssh
Transport output ssh
I have tested, telnet is blocked.
04-28-2009 09:33 PM
Dear Rupesh,
I appreciate ur help on the subject, but unfortunately I am unable to get the solution as suggested, is there anything else beside line vty 0 4 config. I have tried both eg below. Still I can use both SSH and Telnet and are aunthenticated by ACS. Do suggest some other option.
line vty 0 4
exec-timeout 7 0
password 7 030752180500
transport preferred none
transport input ssh
transport output ssh
line vty 0 4
exec-timeout 7 0
password 7 030752180500
transport preferred ssh
transport input ssh
transport output ssh
Thanks,
04-28-2009 09:46 PM
Raj,
I'm afraid that we have to do the other 4 things.
- To make sure that your IOS does support SSH.
- Router(conf)#hostname Router1
- Router(conf)#ip domain-name ssh.com
- Router(conf)#crypto key generate rsa
Here you go :http://www.cisco.com/en/US/tech/tk583/tk617/technologies_tech_note09186a00800949e2.shtml
HTH,
Toshi
04-28-2009 10:06 PM
Hi Toshi,
Infact I have referred the same doc from cisco.com and configured as mention. SSH is working fine but I need to disable telnet.
R01#sh ip ssh
SSH Enabled - version 1.99
Authentication timeout: 60 secs; Authentication retries: 3
Any other option,
Thanks,
04-28-2009 10:25 PM
Raj,
Sorry , I missed reading your question.
Router(config)# line vty 0 15
Router(config)# transport input ssh
This would be fine. Not sure which version of IOS you are using.
HTH,
Toshi
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