ssh状态查询
[[email protected] ~]# [[email protected] ~]# 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. [[email protected] ~]# [[email protected] ~]# [[email protected] ~]#
启动
systemctl start sshd.service
重启
systemctl restart sshd.service
服务自动开启
systemctl enable sshd.service
8080端口查询
netstat -tunlp |grep 8080
######################
原创文章,作者:ItWorker,如若转载,请注明出处:https://blog.ytso.com/280051.html