温馨提示×

centos7如何查看ssh服务状态

小新
7481
2021-05-12 08:38:47
栏目: 智能运维
Centos服务器限时活动,0元免费领,库存有限,领完即止! 点击查看>>

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

centos7如何查看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服务开机自启

亿速云「云服务器」,即开即用、新一代英特尔至强铂金CPU、三副本存储NVMe SSD云盘,价格低至29元/月。点击查看>>

推荐阅读:centos7怎么查看ssh服务状态

0