12 2021 档案
摘要:## awk根据列过滤内容 ```shell netstat -nap | awk '{if($4~":6443" && $(NF-1)=="LISTEN") print $0}' ``` > `if()` :括号里面条件满足,则执行 `print $0` > `$4` : 第四列内容包含有 :64
阅读全文
摘要:优化ssh [ops@kvm01 ~]$ sudo egrep -v "^#|^$" /etc/ssh/sshd_config ## 修改ssh端口 Port 58022 ## 禁止root远程登录 PermitRootLogin no ## 优化ssh连接速度 GSSAPIAuthenticati
阅读全文