HowTo: Restart SSH Service under LinuxUNIX

it2022-05-15  65

How do I restart SSH service under Linux or UNIX operating systems?The command to restart ssh are as follows (you must login as root user):

CentOS / RHEL / Fedora / Redhat Linux Restart SSH

# /etc/init.d/sshd restartOR# service sshd restart

Debian / Ubuntu Linux Restart SSH

# /etc/init.d/ssh restartOR# service ssh restart

FreeBSD Restart SSH

# /etc/rc.d/sshd restart

UNIX Restart SSH

# kill -HUP `cat /var/run/sshd.pid`Please note that the location of /var/run/sshd.pid may change. So just search a bit through /var/run/ directory.

转载于:https://www.cnblogs.com/shangdawei/p/4561528.html

相关资源:数据结构—成绩单生成器

最新回复(0)