How can I create a user on CentOS 5.6, which cannot login with a password. I.E. they can only login and SSH using public key authentication.
useradd myuser -d /their-home-dir
Will that do it, without calling passwd?
Server Fault is a question and answer site for system and network administrators. It only takes a minute to sign up.Sign up to join this community