question

gerbrand-meijer avatar image
gerbrand-meijer asked

SSH access only with certificate (disable root pwd)

I managed to sign in to my Cerbo GX as root by setting a pasword. After this I setup an ssh key so I can automatically log in using my certificate. In my opinion this only makes sense when I can remove the password for the root user, otherwise people still can try the password.

However, when I expire the root password I loose access altogether. (passwd -l root)

Is there a way to remove the root password and still be able to login using the set ssh key?

cerbo gxssh
1 comment
2 |3000

Up to 8 attachments (including images) can be used with a maximum of 190.8 MiB each and 286.6 MiB total.

kevgermany avatar image kevgermany ♦♦ commented ·
Moved to modifications. Better here
0 Likes 0 ·
1 Answer
jeroen avatar image
jeroen answered ·

This should work:

usermod -p '*' root
2 |3000

Up to 8 attachments (including images) can be used with a maximum of 190.8 MiB each and 286.6 MiB total.