Sunday, February 7, 2021

getting "authentication failed" when i try to ssh (with correct password)

I can't ssh to my 6800, even though i can confirm (via console) that i have the right password) and ssh settings:

ip ssh time-out 60

ip ssh authentication-retries 4

ip ssh source-interface Loopback0

ip ssh logging events

ip ssh version 2

Here is the verbose when trying to ssh https://pastebin.com/ur4RP6Tj

Here is a successful ssh to another 6500 in the network.

it has same ssh setting:

ip ssh time-out 60

ip ssh authentication-retries 4

ip ssh source-interface Loopback0

ip ssh logging events

ip ssh version 2

and its ssh verbose output is here https://pastebin.com/u0ASyF6m

the only difference is that on the 6800 that ssh fails:

debug1: Authentications that can continue: publickey,keyboard-interactive,password

debug1: Trying private key: /u/wk/user/.ssh/id_ecdsa

debug1: Trying private key: /u/wk/user/.ssh/id_ed25519

debug1: Next authentication method: keyboard-interactive

debug1: Authentications that can continue: publickey,keyboard-interactive,password

debug1: Next authentication method: password

[netuser@192.168.1.2](mailto:netuser@192.168.1.2)'s password:

debug1: Authentications that can continue: publickey,keyboard-interactive,password

Permission denied, please try again.

[netuser@192.168.1.2](mailto:netuser@192.168.1.2)'s password:

it is trying to use "password method"

while on the 6500 where ssh succeeds

debug1: Authentications that can continue: publickey,keyboard-interactive,password

debug1: Offering RSA public key: /u/wk/user/.ssh/id_rsa

debug1: Authentications that can continue: publickey,keyboard-interactive,password

debug1: Trying private key: /u/wk/user/.ssh/id_dsa

debug1: Trying private key: /u/wk/user/.ssh/id_ecdsa

debug1: Trying private key: /u/wk/user/.ssh/id_ed25519

debug1: Next authentication method: keyboard-interactive

Password:

debug1: Authentication succeeded (keyboard-interactive).

Authenticated to host1.com ([192.168.1.1]:22).

How can i configure the 6800 so it uses "keyboard interactive" method? ir is there another problem i am not seeing

thanks



No comments:

Post a Comment