ftp通过ssh隧道

Luc*_*Luc 7 ftp ssh redirect portforwarding tunneling

我有一台运行ftp服务器的机器,我想从位于仅授权端口80的路由器后面的另一个网络上的机器访问它.

我在考虑像ssh隧道:

ssh -L local_port:${ftphost}:20 user@{sshhost}
Run Code Online (Sandbox Code Playgroud)

其中$ {sshhost}是另一台可以访问ftp服务器$ {ftphost}的机器.

$ {sshhost}可以从我的主机访问,而$ {ftphost}只能从$ {sshhost}到达而不是我的.{sphhost}

那会是最好的解决方案吗?

Rob*_*ert 7

O'Reilly Book" SSH,The Secure Shell:The Definitive Guide "包含了关于FTP Forwarding的整章 .我认为这应该回答你所有的问题.