To start, stop, or restart the OpenSSH SSHD service on an HP-UX system, you can use the startsrc
and stopsrc
commands.
The startsrc
command is used to start a system service, and the stopsrc
command is used to stop a system service.
To start the OpenSSH SSHD service, you can use the following command:
startsrc -s sshdSource:www.lautturi.com
To stop the OpenSSH SSHD service, you can use the following command:
stopsrc -s sshd
To restart the OpenSSH SSHD service, you can stop it and then start it again using the stopsrc
and startsrc
commands. For example:
stopsrc -s sshd startsrc -s sshd
You can find more information about the startsrc
and stopsrc
commands and their options in the HP-UX documentation or by running the startsrc --help
and stopsrc --help
commands.
Keep in mind that you will need to be logged in as a user with the necessary privileges to start and stop system services on an HP-UX system. You may need to use the sudo
command or log in as the root user to start or stop the OpenSSH SSHD service.