enable the ssh

hi,
i want to enable ssh on my solaris,i use $svcs -p ssh it showing
STATE STIME FMRI
maintenance 10:06:16 svc:/network/ssh:default

why the state in maintenance state, so i could n't able to login using ssh.
pls help me to enable ssh.

thanks,

The ssh process relies on a a series of other services and if those services are still in maintenance then ssh will fail to come up.
You need to check the dependencies first and make sure those are started:

bash-3.00# svcs -l ssh
fmri         svc:/network/ssh:default
name         SSH server
enabled      true
state        online
next_state   none
state_time   January 28, 2011 12:14:24 AM EST
logfile      /var/svc/log/network-ssh:default.log
restarter    svc:/system/svc/restarter:default
contract_id  76
dependency   require_all/none svc:/system/filesystem/local (online)
dependency   optional_all/none svc:/system/filesystem/autofs (online)
dependency   require_all/none svc:/network/loopback (online)
dependency   require_all/none svc:/network/physical (online)
dependency   require_all/none svc:/system/cryptosvc (online)
dependency   require_all/none svc:/system/utmp (online)
dependency   require_all/restart file://localhost/etc/ssh/sshd_config (online)

Also, check the logs:

svcs -xv ssh

See what else is in maintenance:

svcs -a |grep maintenace