Guy Fawkes Posted November 29 Posted November 29 SSH is an acronym for Secure Shell. It is an Internet communication protocol that allows log into Linux or Unix bases systems and runs commands. One can exchange files using a secure channel over an insecure network such as the Internet. OpenSSH is developed as part of the OpenBSD project and by default installed on modern Linux and *BSD family of operating systems including macOS. This page shows how to restart sshd daemon using the command line option. Procedure to restart sshd daemon 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 following command: sudo systemctl restart ssh.service RHEL/CentOS Linux user run: sudo systemctl restart sshd.service The command to restart sshd varies from one variant of Linux or Unix distro to another. Hence, we will see all other commands below. Please note that you must login as root user to restart services. Either use the su command or sudo command. How to restart the SSHD daemon in Debian / Ubuntu Linux Type the systemctl command: # sudo systemctl restart ssh Are you an older version of Debian/Ubuntu Linux (pre systemd)? Try the service command: #service ssh restart ## OR ## #service sshd restart CentOS / RHEL / Fedora / Redhat Linux Restart SSHD server # sudo systemctl restart sshd Restating the SSHD daemon on FreeBSD Unix # /etc/rc.d/sshd restart or # service sshd restart OpenBSD Unix restart the SSHD service # /etc/rc.d/sshd restart or # /etc/rc.d/sshd restart Solaris 10/11 command # svcadm disable ssh # svcadm enable ssh Solaris version 9 and older users, try: # /etc/init.d/sshd stop # /etc/init.d/sshd start AIX Unix command # stopsrc -s sshd # startsrc -s sshd HP-UX Unix command To restart sshd daemon on HP-UX, first stop it and again start it as follows: # /sbin/init.d/secsh stop # /sbin/init.d/secsh start Quote Donate Vi Veri Veniversum Vivus Vici I am not a tech support or a script consultant! I am a network engineer and system administrator! In my free time I crack software and publish it on this site! If you need help installing any software from this site or any other - write to @Guy Fawkes - we will agree for a modest reward! If you want the same site - the price is 100 euros, including hosting for 1 year! (you will publish the content yourself), I will only install and configure everything. I will also help with payment systems for Europe!
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.