05-02-2024 06:40 AM
Hello,
I've got a couple of Catalyst switches that are accessed by the admins via SSH.
For security reasons I like to change their login method from password to public key authentication.
In addition to the admin users, I have a few technical user accounts that still need to log in with a password.
For the admin users I configured each users public key with:
conf t
ip ssh pubkey-chain
username ...
key-string
AAA...
...==
So far, everything works fine.
Everyone is able to login using his private key.
But I've got a problem for which I couldn't find a solution in the forums or in the Cisco "Secure Shell Configuration Guide":
Is this possible?
Note: "no ip ssh server authenticate user password" is not an option, because I have some technical users who still need to login with a password instead of using public key authentication.
Thanks in advance!
05-02-2024 12:54 PM
Hello,
I somewhere seem to remember the command 'username username nopassword' which keeps that specific user from logging in with a password...in theory, if you configure that it should prevent the specified user from logging in through SSH using a password...
05-16-2024 12:09 AM
Hello Georg,
thank you - but this was my first thought and when you delete the user password by
username username nopassword
it doesn't prevent the user from logging in through SSH but makes him able to login without promting for a 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