centos7操作SSH/SSHD服务(启停)

查看状态:

systemctl status sshd.service


启动服务:

systemctl start sshd.service

重启服务:

systemctl restart sshd.service

开机自启:

systemctl enable sshd.service

关闭服务:

systemctl stop sshd.service

猜你喜欢

转载自blog.csdn.net/weixin_37569048/article/details/80745752