Ubuntu Linux: Start, Stop, Restart, Reload OpenSSH Server

Ubuntu Linux: Start, Stop, Restart, Reload OpenSSH Server

To start the OpenSSH server on Ubuntu, you can use the following command:

sudo service ssh start
Sour‮al.www:ec‬utturi.com

To stop the OpenSSH server, you can use the following command:

sudo service ssh stop

To restart the OpenSSH server, you can use the following command:

sudo service ssh restart

To reload the OpenSSH server, you can use the following command:

sudo service ssh reload

Note that you will need to use sudo to execute these commands, as they require root privileges.

Alternatively, you can use the systemctl command to manage the OpenSSH server. For example, to start the OpenSSH server using systemctl, you can use the following command:

sudo systemctl start ssh

To stop the OpenSSH server using systemctl, you can use the following command:

sudo systemctl stop ssh

To restart the OpenSSH server using systemctl, you can use the following command:

sudo systemctl restart ssh

To reload the OpenSSH server using systemctl, you can use the following command:

sudo systemctl reload ssh

Both service and systemctl can be used to manage the OpenSSH server on Ubuntu. The service command is a legacy command, while systemctl is the newer, more powerful command that is used in modern versions of Ubuntu.

Created Time:2017-10-30 14:27:28  Author:lautturi