When I set up my Debian 6, I was wondering, which users apart from root whose password I know can log into my system via SSH?When I install Apache 2 a user called www-data gets created. Does this user have the right to log into my system via SSH? But if there was some default password for www-data everyone could log in, seems unlikely to me.Where do I have a list which users are allowed to log into my system via SSH? Can't find anything in the ssh config files.
Which users are allowed to log in via SSH by default?
linux;debian;ssh;users;login
Paradeepchhetri isn't exactly correct. Debian's unmodified sshd_config has the following:PubkeyAuthentication yesPermitEmptyPasswords noUsePAM yesThus, login via ssh would only work for users that have a populated password field in /etc/shadow or an ssh key in ~/.ssh/authorized_keys. Note that the default value for PubkeyAuthentication is yes and for PermitEmptyPasswords is no, so even if you remove them the behavior will be the same.In the question example, www-data by default won't be allowed to log in since Debian's installer neither assigns a password nor creates a key for www-data.pam_access, AllowUsers and AllowGroups in sshd_config can be used for finer control if that's needed. In Debian it's strongly encouraged to UsePAM.