• 展开微博窗口
  • QQ:365182575
  • 微信:cighsen
  • 展开分类目录
Nearnet

重启sshd服务

查看状态:
systemctl status sshd.service

启动服务:
systemctl start sshd.service

重启服务:
systemctl restart sshd.service

开机自启:
systemctl enable sshd.service

sshd服务状态调整

systemctl status sshd        查看服务状态

systemctl start sshd           打开服务

systemctl stop sshd            关闭服务

systemctl restart sshd            重起服务

systemctl enable sshd           设定开机启动

systemctl disable sshd          设定开机不启动

systemctl reload sshd            重新加载配置文件

systemctl   list-units                 列出已开启服务当前状态
码字很辛苦,转载请注明来自NAERENET《重启sshd服务》