小编Aus*_*tin的帖子

列出自己从ssh转发的端口?

如果我像这样连接到服务器:

JP_PORT=$(shuf -i 8895-9100 -n 1)
TB_PORT=$(shuf -i 6010-6200 -n 1)
ssh -Y -L ${JP_PORT}:127.0.0.1:${JP_PORT} -L ${TB_PORT}:127.0.0.1:${TB_PORT} <host>
Run Code Online (Sandbox Code Playgroud)

建立连接后,是否有任何终端命令会返回我转发的端口列表?

ssh command-line port-forwarding

4
推荐指数
1
解决办法
4053
查看次数

标签 统计

command-line ×1

port-forwarding ×1

ssh ×1