11-12-2015 05:07 AM - edited 03-08-2019 02:40 AM
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 ?
11-12-2015 03:07 PM
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
11-12-2015 11:47 PM
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.
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