Question: how to do sshd restart?
Answer: Open the terminal application. Edit the file /etc/ssh/sshd_config using a text editor such as vi or nano. Restart sshd service on an Ubuntu or Debian Linux using the sudo systemctl restart ssh.service. RHEL/CentOS Linux user run sudo systemctl restart sshd.service.