我想转发多个端口。到目前为止我的配置如下:
Host myhost
Hostname 123.123.123.123
IdentityFile ~/.ssh/id_myhost
LocalForward 8811 localhost:8811
IdentitiesOnly yes
除了 8811 之外,我还想转发端口 6006。
答案1
可以添加多行LocalForward
:
Host myhost
Hostname 123.123.123.123
IdentityFile ~/.ssh/id_myhost
LocalForward 8811 localhost:8811
LocalForward 6006 localhost:6006
IdentitiesOnly yes
这是你想要的吗?