07-12-2016 09:05 PM
I've created the two users below.
username cisco privilege 15 password 0 cisco
username hello password 0 hello privilege 15
I can ssh with the "cisco" user with no issues, but I get access denied when logging in with "hello". Since the configuration kept the order of the privilege and password commands as I entered them, I'm assuming that the order matters in some way? Can someone explains what's going on here?
Cisco 1841, Version 15.1(4)M10
Debug of ssh
*Jul 13 03:53:28.159: SSH2 0: expecting SSH2_MSG_KEX_DH_GEX_INIT
*Jul 13 03:53:28.159: SSH2 0: SSH2_MSG_KEXDH_INIT received
*Jul 13 03:53:28.639: SSH2: kex_derive_keys complete
*Jul 13 03:53:28.639: SSH2 0: SSH2_MSG_NEWKEYS sent
*Jul 13 03:53:28.639: SSH2 0: waiting for SSH2_MSG_NEWKEYS
*Jul 13 03:53:28.683: SSH2 0: SSH2_MSG_NEWKEYS received
*Jul 13 03:53:36.459: SSH2 0: Using method = none
*Jul 13 03:53:36.459: SSH2 0: Using method = keyboard-interactive
*Jul 13 03:53:43.075: SSH0: password authentication failed for hello
*Jul 13 03:53:45.075: SSH2 0: Using method = keyboard-interactive
Solved! Go to Solution.
07-12-2016 11:37 PM
Hi,
everything behind ...password 0... is considered as password.
So your username is hello and password: "hello privilege 15"
If you want to have user hello with pasword "hello" then type commands:
no username hello
username hello privilege 15 password 0 hello
Consider to use "secret" keyword instead of "password" keyword.
Secret password cannot be revealed back.
07-12-2016 11:37 PM
Hi,
everything behind ...password 0... is considered as password.
So your username is hello and password: "hello privilege 15"
If you want to have user hello with pasword "hello" then type commands:
no username hello
username hello privilege 15 password 0 hello
Consider to use "secret" keyword instead of "password" keyword.
Secret password cannot be revealed back.
07-13-2016 08:21 AM
Oh, by golly, I didn't think of that!
I used passwords to troubleshoot easier. Ironically using secrets I would have spotted this right away. Thanks for your help!
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