轉自:https://blog.csdn.net/caijunfen/article/details/70599138
CentOs 重啟ssh服務的命令如下:
# service sshd restart
出現:Redirecting to /bin/systemctl restart sshd.service
以下轉自:Redirecting to /bin/systemctl restart sshd.service
1. 查看 sshd 服務是否啟動:
看到上述信息就可以確定是啟動了。
2. 如果沒有啟動,則需要啟動該服務:
systemctl start sshd.service
3. 重啟 sshd 服務:
systemctl restart sshd.service
4. 設置服務開啟自啟:
systemctl enable sshd.service