Restart SSH in Solaris 11

To restart SSH in solaris you can use the svcs command to view the current status of the service

root@solaris:~# svcs | grep ssh
online         14:17:28 svc:/network/ssh:default

Now you can restart the service

root@solaris:~# svcadm restart svc:/network/ssh:default

You can see the timestamps noting that it restarting recently

root@solaris:~# date
Monday, April 10, 2017 02:19:38 PM PDT
root@solaris:~# ps -ef | grep sshd
    root  2748     1   0 14:19:34 ?           0:00 /usr/lib/ssh/sshd
    root  2724  2723   0 14:18:08 ?           0:00 /usr/lib/ssh/sshd
    root  2723     1   0 14:18:08 ?           0:00 /usr/lib/ssh/sshd
    root  2751  2725   0 14:19:41 pts/1       0:00 grep sshd