We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 31c36aa commit eb040f1Copy full SHA for eb040f1
command/ss.md
@@ -1,7 +1,7 @@
1
ss
2
===
3
4
-获取socket统计信息
+获取socket统计信息,iproute2 包附带的另一个工具,允许你查询 socket 的有关统计信息。
5
6
## 补充说明
7
@@ -193,5 +193,16 @@ UNCONN 0 0 127.0.0.1:ntp
193
UNCONN 0 0 *:ntp *:*
194
```
195
196
+#### 出所有端口为 22(ssh)的连接
197
+
198
+```bash
199
+ss state all sport = :ssh
200
201
+Netid State Recv-Q Send-Q Local Address:Port Peer Address:Port
202
+tcp LISTEN 0 128 *:ssh *:*
203
+tcp ESTAB 0 0 192.168.0.136:ssh 192.168.0.102:46540
204
+tcp LISTEN 0 128 :::ssh :::*
205
+```
206
207
208
<!-- Linux命令行搜索引擎:https://jaywcjlove.github.io/linux-command/ -->
0 commit comments