How to Restart Linux server using putty ssh client on Windows

How to Restart Linux server using putty ssh client on Windows

To restart a Linux server using the PuTTY SSH client on Windows, you can use the following steps:

  1. Open the PuTTY SSH client on your Windows computer.

  2. In the "Host Name (or IP address)" field, enter the hostname or IP address of the Linux server you want to restart.

  3. In the "Port" field, enter the port number that the server is listening on. The default port number for SSH is 22.

  4. In the "Connection > SSH > Auth" section, specify the private key file that you will use to authenticate to the server.

  5. Click the "Open" button to open a connection to the server.

  6. When prompted to log in, enter your username and password for the server.

  7. Once you are logged in to the server, you can use the shutdown command to restart the server. For example, to restart the server immediately, you can use the following command:

ref‮‬er to:lautturi.com
sudo shutdown -r now

This will restart the server immediately.

Alternatively, you can use the reboot command to restart the server. For example:

sudo reboot

This will also restart the server immediately.

Keep in mind that restarting the server will disrupt any services that are running on the server, and may cause data loss if there are any unsaved changes. Be sure to save any work and inform any other users before restarting the server.

Created Time:2017-10-29 22:08:35  Author:lautturi