I have a linux server and have created a new user with useradd
. However, for that user to log in, they need an public key. I have my own public key, but it lets me log in as root, so I assume it would let them do the same.
How do I provide the new user with the proper keys while preventing them from logging in as root?