I am adding a new user account (to a CentOS 6.2 box) which will only use ssh key authentication (with a strong key passphrase of course). I have disabled ssh password auth in sshd_config.
Should I even use passwd
to setup a password for them? Is there a security issue not creating a password?
No, you don't need a password if you will be only using SSH key authentication.
Even, if you set a password for this user, you can disable password authentication in
sshd_config
for specific users/groups.It would depend on if there was any other kind of interactive login they could use.
pam
using/etc/passwd
for any other serviceI would have thought it was good practice to at least set a password - if you are not 100% confident that another application could authenticate via
pam
using/etc/passwd
You don't need to use a password on login, but I do suggest using a passphrase on the private key on the user. This means you'll have to use a forwarding agent, but then you provide security on the user's end if their machine is accessed or compromised.
Other than that potential issue, you should really be increasing security as there is no password for an attacker to even attempt to crack.