I was testing some pam rules and I noticed that all users has uid=0 (root) when they log in to the system through SSH. Could be a reason that sshd starts automatically when the server boots up? How to avoid this?
Dec 13 08:41:56 dc01 sshd[4293]: Accepted keyboard-interactive/pam for rmartinez from 192.168.10.10 port 45924 ssh2
Dec 13 08:41:56 dc01 sshd[4293]: pam_unix(sshd:session): session opened for user rmartinez by (uid=0)
Dec 13 08:46:08 dc01 sshd[4404]: Connection from 192.168.10.10 port 45934 on 192.168.10.10 port 22
Dec 13 08:46:08 dc01 sshd[4404]: Postponed keyboard-interactive for pgambarte from 192.168.10.10 port 45934 ssh2 [preauth]
Dec 13 08:46:08 dc01 sshd[4404]: Accepted keyboard-interactive/pam for pgambarte from 192.168.10.10 port 45934 ssh2
Dec 13 08:46:08 dc01 sshd[4404]: pam_unix(sshd:session): session opened for user pgambarte by (uid=0)
Dec 13 08:46:21 dc01 sshd[4457]: Connection from 192.168.10.10 port 45936 on 192.168.10.10 port 22
Dec 13 08:46:21 dc01 sshd[4457]: Postponed keyboard-interactive for rmartinez from 192.168.10.10 port 45936 ssh2 [preauth]
Dec 13 08:46:21 dc01 sshd[4457]: Accepted keyboard-interactive/pam for rmartinez from 192.168.10.10 port 45936 ssh2
Dec 13 08:46:21 dc01 sshd[4457]: pam_unix(sshd:session): session opened for user rmartinez by (uid=0)
Thank you so much. Regards.