Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. And see here for current known issues.

New Member

ssh on router

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

Re: ssh on router

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

7 REPLIES
New Member

Re: ssh on router

line vty 0 4

trasport preferred ssh

New Member

Re: ssh on router

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,

New Member

Re: ssh on router

Do one thing, just add

Transport input ssh

Transport output ssh

I have tested, telnet is blocked.

New Member

Re: ssh on router

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,

Re: ssh on router

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

New Member

Re: ssh on router

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,

Re: ssh on router

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

305
Views
0
Helpful
7
Replies