By default when you install a fresh solaris 10 operating system, the root user does not have an ssh login access to the system. This is done for security purposes and it is a default setting. So if you want to login to your system as root user, you have to first login as a normal non-root user and then do a switch user (su -) to root user. To remove this restriction follow the steps shown below.
1. Please check the sshd configuration file /etc/ssh/sshd_config and make sure PermitRootLogin is set to yes as shown below.
# vi /etc/ssh/sshd_config PermitRootLogin yes
2. Once you have modified the file to have the parameter, restart the ssh service for the changes to take effect.
# svcadm restart ssh
3. If the parameter AllowUsers is set as well, it is necessary to add user “root” to the list of AllowUsers list as shown below.
# vi /etc/ssh/sshd_config AllowUsers user01 user02 root
This usually is not required as the AllowUsers parameter line is by default hashed out.