【发布时间】:2020-02-04 19:42:05
【问题描述】:
我正在尝试设置一个带有远程端口转发的 ssh 隧道。这个想法是让 VPS 作为 ssh 进入远程部署系统(目前包含 Raspberry Pi)的一种手段。一切似乎都正常,但是在尝试将所有参数移动到 ~/.ssh/config 文件时遇到了问题。 有效的是主机名、用户、端口和身份文件的设置。但是设置 RemoteForward 参数似乎不起作用。
以下作品:
ssh -R 5555:localhost:22 ssh-tunnel
如何在配置文件中使用以下行;
Host ssh-tunnel
...
RemoteForward 5555 localhost:22
以下命令返回消息“Bad remote forwarding specification 'ssh-tunnel'”
ssh -R ssh-tunnel
【问题讨论】:
标签: ssh ssh-tunnel ssh-config