Linux 拨号vps windows公众号手机端

centos7如何查看ssh服务状态

lewis 6年前 (2019-11-11) 阅读数 11 #网络运维
文章标签 centos7ssh服务

centos7中查看ssh服务状态的方法:1、打开centos7终端;2、在centos7终端命令行中输入“systemctl status sshd.service”命令查看ssh服务状态即可。

具体操作步骤:

1、在centos7系统桌面中使用快捷键【Ctrl+Alt+T】打开centos7终端命令行模式。

2、在centos7终端命令行中输入以下命令查看ssh服务状态即可。

systemctl status sshd.service #查看ssh服务状态

相关操作命令:

systemctl restart sshd.service #重启ssh服务

systemctl start sshd.service #开启ssh服务

systemctl enable sshd.service #设置ssh服务开机自启

版权声明

本文仅代表作者观点,不代表米安网络立场。

发表评论:

◎欢迎参与讨论,请在这里发表您的看法、交流您的观点。

热门