How to restart sshd service in Solaris 10
This article will show you how to restart the sshd service on Solaris 10.
To Restart the SSH Service
- Login to the command-line terminal
- Run the command:
svcadm restart svc:/network/ssh:default
2 comments / June 3, 2009 / sood / Linux/Unix
This article will show you how to restart the sshd service on Solaris 10.
svcadm restart svc:/network/ssh:default
The command to restart sshd service in Solaris is :
Usage: /lib/svc/method/sshd { start | restart }
Cheers!
[root@tlps15vz] svcadm enable svc:/network/ssh:default
[root@tlps15vz]
[root@tlps15vz] svcs -a | grep -i ssh
offline 20:33:44 svc:/network/ssh:default
[root@tlps15vz] svcadm restart svc:/network/ssh:default
[root@tlps15vz] svcs -a | grep -i ssh
offline 20:33:44 svc:/network/ssh:default
[root@tlps15vz] /lib/svc/method/sshd start
[root@tlps15vz] svcs -a | grep -i ssh
offline 20:33:44 svc:/network/ssh:default
[root@tlps15vz]