可以通过HTTP代理隧道传送SSH数据包,例如通过corkscrew . 我想知道,是否有类似的工具使用文件来隧道SSH?我们的想法是在两个网络之间 Build SSH连接 only a common file share existsall other ports are being blocked .

更新

到现在为止我正在使用这样的东西(当然,这不是SSH隧道,也可以使用远程端的任何其他shell):

#  On common fileshare: (from local or remote machine)
#

rm    /mnt/fileshare/my_ssh_out
rm    /mnt/fileshare/my_ssh_in
touch /mnt/fileshare/my_ssh_in


#  On remote machine: (after local log-in)
#

tail -f /mnt/fileshare/my_ssh_in | ssh localhost &>> /mnt/fileshare/my_ssh_out


#  On local machine: (in two different shells)
#

tail -f /mnt/fileshare/my_ssh_out

echo "ls -l"                        >> /mnt/fileshare/my_ssh_in
echo "cd Desktop"                   >> /mnt/fileshare/my_ssh_in
echo "pwd"                          >> /mnt/fileshare/my_ssh_in
echo "rm -f it_security_policy.pdf" >> /mnt/fileshare/my_ssh_in
      ...

我不是贝壳专家 . 我认为应该有一种更优雅的方式,例如使用像SSH这样的安全连接..?

也许类似于:https://unix.stackexchange.com/questions/345606/netcat-magic-to-listen-and-send-result

更新2

TCP-over-File隧道:从Windows 2003开始,终端服务默认支持与客户端共享本地文件夹;此工具可用于通过共享文件隧道传输多个同时的TCP连接 . [...]选择通过文件的隧道连接,因为这是 often desired functionality ,因此可能是业务要求 . https://labs.mwrinfosecurity.com/tools/tcp-over-file-tunnel/