1. 查看ssh服务启动状态
systemctl status sshd.service
2. 设置ssh服务开机自启动
systemctl enable sshd
3.启动ssh服务
systemctl start sshd
4. 停止ssh服务
systemctl stop sshd
5.重启SSH服务
systemctl restart sshd
1. 查看ssh服务启动状态
systemctl status sshd.service
2. 设置ssh服务开机自启动
systemctl enable sshd
3.启动ssh服务
systemctl start sshd
4. 停止ssh服务
systemctl stop sshd
5.重启SSH服务
systemctl restart sshd
本文标题:centos7设置ssh服务
本文链接:https://www.haomeiwen.com/subject/xiuqvctx.html
网友评论