cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
401
Views
0
Helpful
2
Replies

configuring SSH on Cisco Router, I need help please

mohammed hashim
Level 1
Level 1

hi,

I am trying to confiure SSH with these configurations:

Router1(config)#hostname Router1
Router1(config)#ip domain-name abc.com
Router1(config)#crypto key generate rsa
The name for the keys will be: Router1.abc.com
Choose the size of the key modulus in the range of 360 to 2048 for your
General Purpose Keys. Choosing a key modulus greater than 512 may take
a few minutes.

How many bits in the modulus [512]: 1024
Generating RSA keys ...
[OK]

Router1(config)#ip ssh authentication-retries 4

Router1(config)#ip ssh version 2

Router1(config)#username admin privilege 15 secret abc123

Router1(config)#line vty 5 16
Router1(config-line)#transport input ssh
Router1(config-line)#login local
Router1(config-line)#exit

but when I access the router through SSH, the password is not valid as appear in the picture in the attachment:

I am inserting password abc123

in the show run, it shows me:

R1#show run | inc user
username admin privilege 15 secret 5 $1$3YT6$6jS1z564TUgZ5YBssQotC/

I tried also to insert $1$3YT6$6jS1z564TUgZ5YBssQotC/

what is the issue here ?

2 Replies 2

Hello,

First, use line VTY 0 16 instead of line VTY 5 16. and try

second, try to use username admin password *** instead of secret

make sure there is no space between the characters,

Masoud

For setting up ssh look at the following guide:

https://supportforums.cisco.com/document/12338141/guide-better-ssh-security

You password is perfectly fine with "secret", no need to use cleartext passwords. But the most likely reason is, as already mentioned, an extra space at the end of the password.

Review Cisco Networking for a $25 gift card