First of, you’ll have to locate and install the following packages :
- SUNWsshcu
- SUNWsshdr
- SUNWsshdu
- SUNWsshr
- SUNWsshu
The two last are the SSH client parts, it doesn’t hurt to install them.
You need to have the server keys generated in /etc/ssh. Those are the 4 files :
- ssh_host_dsa
- ssh_host_dsa.pub
- ssh_host_rsa
- ssh_host_rsa.pub
Should they not to be there, you can still generate by issuing the following command : /lib/svc/method/sshd -c.
Finally, you can start the service with svcadm enable sshd.
If this fails then you’ll need to have a peek under the hood … The logs of SMF are located in /var/svc/log and the one of sshd is network-ssh:default.log.
Hi,
a little mistake in your useful article: when you say “Should they not to be there, you can still generate by issuing the following command : /lib/svc/method/ssh -c.” you need to change in “Should they not to be there, you can still generate by issuing the following command : /lib/svc/method/sshd -c.”. Note the use of /lib/svc/method/sshd instead of /lib/svc/method/ssh.
Bye
Piero
Hey Piero,
Thanks for passing by and for spotting this mistake ! I correct it right away 🙂
Bye
Stéphane
I had to use ‘svcadm enable ssh’ instead of ‘svcadm enable sshd’ for Solaris 10 10/08.
Thanks for the post!