ssh状态查询

ssh状态查询

[vfsd@VFSD ~]# 
[vfsd@VFSD ~]# systemctl status sshd.service
?sshd.service - OpenSSH server daemon
   Loaded: loaded (/usr/lib/systemd/system/sshd.service; enabled; vendor preset: disabled)
   Active: active (running) since Fri 2022-08-12 07:39:12 CST; 1min 14s ago
     Docs: man:sshd(8)
           man:sshd_config(5)
 Main PID: 18523 (sshd)
   CGroup: /system.slice/sshd.service
           忖18523 /usr/sbin/sshd -D

Aug 12 07:39:12 VFSD systemd[1]: Starting OpenSSH server daemon...
Aug 12 07:39:12 VFSD sshd[18523]: Server listening on 0.0.0.0 port 22.
Aug 12 07:39:12 VFSD systemd[1]: Started OpenSSH server daemon.
[vfsd@VFSD ~]# 
[vfsd@VFSD ~]# 
[vfsd@VFSD ~]# 

 

启动

systemctl start sshd.service

 

 

重启

systemctl restart sshd.service

 

服务自动开启

systemctl enable sshd.service

 

8080端口查询

 netstat -tunlp |grep 8080

 

 

######################

posted @ 2022-08-12 07:44  西北逍遥  阅读(415)  评论(0编辑  收藏  举报