On Solaris, restart SSH with svcadm restart — not svcadm enable.
sudo svcadm restart svc:/network/ssh:default
svcs -l svc:/network/ssh:default
Solaris has used the Service Management Facility (SMF) since Solaris 10. There is no systemctl, no /etc/init.d/sshd restart, and no service sshd restart. Services are named by FMRI — a Fault Management Resource Identifier — and SSH’s is svc:/network/ssh:default.
Table of Contents
Restart or enable: which svcadm command to use
Running svcadm enable ssh to restart the service is wrong, and it is the single most common error in Solaris SSH guides. The two subcommands do different jobs, and Oracle’s own svcadm(8) man page for Solaris 11.4 spells out the difference:
- enable — “Enables the service instances specified by the operands. For each service instance, the assigned restarter will try to bring it to the online state.” And: “By default, enable is persistent across reboot.”
- restart — “Requests that the service instances specified by the operands be restarted… Restarting a service is implemented by most restarters as a full service ‘stop’ followed by a ‘start’.”
So if sshd is already online — which it is, in the situation where you want to restart it — svcadm enable asks the restarter to bring it to a state it is already in. Nothing happens. Your edited sshd_config is not reloaded, and you conclude the config change “didn’t take”.
There is a catch in the other direction too. Oracle’s man page states that restart “can restart only those services that are in the online or degraded states.” If SSH is disabled or offline, restart is the wrong tool and enable is the right one. Check first, then pick:
svcs -l svc:/network/ssh:default
Read the state line. online or degraded → use restart. disabled → use svcadm enable. maintenance → the service failed its start method; read the log path printed by svcs -l, fix the cause, then svcadm clear svc:/network/ssh:default.
If you only changed sshd_config, prefer refresh
sudo svcadm refresh svc:/network/ssh:default
refresh asks the restarter to re-read the service’s configuration. For SSH that re-reads /etc/ssh/sshd_config without dropping the daemon, so established sessions — including the one you are typing in — survive. Reach for restart when the daemon itself is wedged.
Whichever you use, check the file before you hand it to the daemon. sshd -t -f /etc/ssh/sshd_config parses a config without starting anything and is not Solaris-specific — it behaves the same on any OpenSSH build, which is the cheapest way to avoid finding out about a typo when the daemon refuses to come back.
Checking that SSH is installed: pkginfo is the Solaris 10 answer
pkginfo | grep -i ssh is correct for Solaris 10, which uses SVR4 packaging. It is misleading on Solaris 11, which uses IPS (Image Packaging System). pkginfo still exists on Solaris 11.4, but its own man page lists its Availability as package/svr4 — it is a legacy tool that reports SVR4 packages, and it will not show you an IPS package. Oracle’s Solaris 11.4 sshd(8) man page gives the IPS package under Availability: service/network/ssh. So on Solaris 11:
pkg info service/network/ssh
Where each command lives
| Task | Solaris 10 and 11 (SMF) |
|---|---|
| Restart a running service | svcadm restart svc:/network/ssh:default |
| Re-read config, keep sessions | svcadm refresh svc:/network/ssh:default |
| Turn it on, persistently | svcadm enable svc:/network/ssh:default |
| Status, with log path and state | svcs -l svc:/network/ssh:default |
| Clear a maintenance state | svcadm clear svc:/network/ssh:default |
| Inspect or edit service properties | svccfg -s svc:/network/ssh:default |
The short form svcadm restart ssh works when the pattern matches exactly one instance, which on a normal system it does. Use the full FMRI in scripts.
Linux comparison: systemctl restart sshd
sudo systemctl restart sshd works on modern Ubuntu, but for a reason worth knowing: the canonical unit on Debian and Ubuntu is ssh.service. Unpacking the openssh-server 10.3p1-4ubuntu2 package from the Ubuntu 26.04 archive shows /usr/lib/systemd/system/sshd.service is a symlink to ssh.service, and ssh.service carries Alias=sshd.service. On Red Hat-family systems sshd.service is the real name. Neither has anything to do with SMF.
Support status, since this matters for planning
From Oracle’s Lifetime Support Policy: Oracle and Sun System Software (effective date 11 July 2025): Solaris 11.4 shipped August 2018, Premier Support ends November 2031, Extended Support ends November 2037. Solaris 10 is further along — Premier Support ended January 2018 and Extended Support ends January 2027. Solaris 11.3’s Premier Support ended January 2021. Fixes for Solaris 11 arrive as Support Repository Updates (SRUs), and Oracle notes you may be required to move to a newer SRU to get a fix.
Where these Solaris commands come from
No Solaris machine was used for this article. Every Solaris command and quotation above is drawn from documentation and source: Oracle’s Solaris 11.4 svcadm(8), sshd(8) and pkginfo(1) man pages, Oracle’s lifetime support PDF, and the SMF manifest in illumos-gate (usr/src/cmd/ssh/etc/ssh.xml), which declares <service name='network/ssh'> with a default instance — the origin of the svc:/network/ssh:default FMRI. The only thing verified by running it was the Ubuntu unit-file claim, by downloading and unpacking the Ubuntu 26.04 openssh-server package.