如果我像这样连接到服务器:
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>
建立连接后,是否有任何终端命令会返回我转发的端口列表?
ssh command-line port-forwarding
command-line ×1
port-forwarding ×1
ssh ×1