我想轉送多個連接埠。到目前為止我的配置如下:
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
這是你想要的嗎?