轉自: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