查看状态:
systemctl status sshd.service
启动服务:
systemctl start sshd.service
重启服务:
systemctl restart sshd.service
开机自启:
systemctl enable sshd.service
查看配置是否正确:
sshd -t
修改默认配置:
vim /etc/ssh/sshd_config
查看是否运行:
ps -e |grep sshd
查看端口情况:
netstat -an |grep 22
博客介绍了Linux系统中SSH服务的相关操作,包括查看状态、启动服务、重启服务、设置开机自启、查看配置正确性、修改默认配置、查看运行情况以及端口情况等内容。
464

被折叠的 条评论
为什么被折叠?



