for eliminate root to login in ssh section FuzZy_MOnStEr already gave you the answer.
just add a suggestion on the user as root, instead of using su, have you thinking of sudo? Sudo (superuser do) allows a system administrator to give certain users (or groups of users) the ability to run some (or all) commands as root while logging all commands and arguments. Sudo operates on a per-command basis. It is not a replacement for the shell. Features include: the ability to restrict what commands a user may run on a per-host basis, copious logging of each command (providing a clear audit trail of who did what), a configurable timeout of the sudo command, and the ability to use the same configuration file (sudoers) on many different machines.
have a look on this http://www.redhat.com/docs
Although it from redhat, but can apply to other linux distro
Main Topics
Browse All Topics





by: FuzZY_MOnStErPosted on 2003-08-18 at 13:53:27ID: 9176537
go to /etc/ssh directory find sshd_config file and edit it in it u will find PermitRootLogin directive set it to no, this will disallow root to login via ssh + u will fidn ohter cool directives u can use for ur ssh daemon.
Any user one it logs to machine can su to root ! su mean "substitute user".
to get root privileges once u have connected to remote machien via ssh type /bin/su it will prompt for password once u provide it u will be root !