如何在两台 ssh tunnel 连接的机器上使用 syncthing

参考:

步骤:

  1. 建立 ssh tunnel

    1
    
    autossh -M 0 -N   -L 127.0.0.1:22001:127.0.0.1:22000 -R 127.0.0.1:22001:127.0.0.1:22000 Remote-Server
    • -L local 22001 <– remote 22000
    • -R remote 22000 –> local 22001
  2. 在本地 连接的 remote 上 选项 -> 高级 中,设定 remote 的连接地址: tcp://127.0.0.1:22001
  3. 在远程机器上设置连接的 local 上, 选项 -> 高级 中,设定 local 的连接地址: tcp://127.0.0.1:22001