Linux

Restarting SSH Service From Linux Shell Command Line

Why you need to Restart SSH Service

As root System Administrators its one of the common tasks you need to be done on live servers is restarting services.If you change ssh configuration file (for example you change the SSH port number) this modification require a restart to take effect.

How To  Restart SSH Service under Linux / UNIX

For CentOS / RHEL / Fedora / Redhat Linux Restart SSH

service sshd restart
Or
/etc/init.d/sshd restart

Restart SSH On RHEL/CentOS/Fedora Linux with systemd

sudo systemctl restart sshd

Restart SSH On Debian / Ubuntu Linux

/etc/init.d/ssh restart
Or
service ssh restart
Or
sudo service ssh restart

Restart SSH On Debian/Ubuntu/Mint Linux with systemd

sudo systemctl restart ssh

Restart SSH On For FreeBSD

/etc/rc.d/sshd restart
Or
sudo service sshd restart

Restart SSH For OpenBSD

/etc/rc.d/sshd restart
Or
doas /etc/rc.d/sshd restart

 

XsoftHost Support

Share

Recent Posts

Add Extra IP addresses to server configuration On Ubuntu 17.10 and later

Each failover IP address will need its own line in the configuration file. The configuration…

4 years ago

Create RAID Arrays with mdadm on Ubuntu

What is mdadm? The mdadm utility can be used to create and manage storage arrays…

4 years ago

How to change the maximum upload file size for PHP

There are several scenarios that you might need to increase or decrease your php maximum…

6 years ago

How to install Let’s Encrypt Plugin in WHM/cPanel

What is Let’s Encrypt? Let’s Encrypt is a free certificate authority provided by the Internet…

6 years ago

How to install python in my cPanel and add py extension

Python normally installed on all cPanel hosting server because most of Centos/red hat update system…

6 years ago

How to install and enable GUI GNOME Desktop on centos 7

Usually CentOS 7 comes in a numbers of variants, For most users, there are two…

6 years ago