2009-06-25

How to disable users for SSH

you can disable root and deny some user for SSH by edit /etc/ssh/sshd_config

#vi /etc/ssh/sshd_config
....
PermitRootLogin no
....
DenyUsers oracle

-----------
and restart service
for solaris10
#svcadm restart ssh

or solaris9
#/etc/init.d/sshd restart