cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
934
Views
0
Helpful
7
Replies

ssh on router

rkcontrol
Level 1
Level 1

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

1 Accepted Solution

Accepted Solutions

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

View solution in original post

7 Replies 7

Rupesh Kashyap
Level 1
Level 1

line vty 0 4

trasport preferred ssh

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,

Do one thing, just add

Transport input ssh

Transport output ssh

I have tested, telnet is blocked.

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,

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

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,

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

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: