rendered paste body#pkgadd -d . SUNWsshcu SUNWsshdr SUNWsshdu SUNWsshr SUNWsshu
# svcadm enable ssh
# svcs | grep ssh
maintenance 12:31:54 svc:/network/ssh:default
# svcs -xv
svc:/network/ssh:default (SSH server)
State: maintenance since Tue Mar 25 12:31:54 2008
Reason: Start method failed repeatedly, last exited with status 1.
See: http://sun.com/msg/SMF-8000-KS
See: man -M /usr/share/man -s 1M sshd
See: /var/svc/log/network-ssh:default.log
Impact: This service is not running.
# svcs -l ssh
fmri svc:/network/ssh:default
name SSH server
enabled true
state maintenance
next_state none
state_time Tue Mar 25 12:31:54 2008
logfile /var/svc/log/network-ssh:default.log
restarter svc:/system/svc/restarter:default
contract_id
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)
# tail network-ssh:default.log
Could not load host key: /etc/ssh/ssh_host_rsa_key
Could not load host key: /etc/ssh/ssh_host_dsa_key
Disabling protocol version 2. Could not load hostkey or GSS-API mechanisms
sshd: no hostkeys available -- exiting.
[ Mar 25 12:31:54 Method "start" exited with status 1 ]
# cd /etc/ssh
# ls -last
total 206
2 -rw-r--r-- 1 root root 232 Mar 25 12:41 ssh_host_rsa_key.pub
2 drwxr-xr-x 2 root sys 512 Mar 25 12:41 .
2 -rw------- 1 root root 883 Mar 25 12:41 ssh_host_rsa_key
2 -rw-r--r-- 1 root root 612 Mar 25 12:40 ssh_host_dsa_key.pub
2 -rw------- 1 root root 668 Mar 25 12:40 ssh_host_dsa_key
8 drwxr-xr-x 46 root sys 3584 Mar 25 12:23 ..
174 -rw-r--r-- 1 root sys 88301 Jan 21 2005 moduli
2 -rw-r--r-- 1 root sys 861 Jan 21 2005 ssh_config
12 -rw-r--r-- 1 root sys 5202 Jan 21 2005 sshd_config