Example of Using SSH Port Forwarding for Replication

This is just a more specific example of Replicating over SSH Port Forwarding <http://www.vestasys.org/doc/notes/ssh-repl/>, Example 1.

At your site, there might already be a workstation or 2 listed in the #replicate-from attrib of /vesta/. In that case, easiest thing to do is just log into one of them.

And if you already have an account on dev.vestasys.org, you can use that as your SSH server.

The hosts in play, then, can be:

  1. workstation.site.company.com: Choose one that's already in #replicate-from. The user will run the replicator here, which is behind the corporate firewall and is a client of the repository behind the firewall

  2. xyz-vesta.site.company.com: The source/destination repository behind the corporate firewall

  3. workstation.site.company.com: The user will also run the SSH client on their workstation

  4. dev.vestasys.org: The user's Linux machine at home on a broadband connection, which will be used as an SSH server.

  5. pub.vestasys.org: The source/destination repository on the public internet

With this setup, user creates the port forwarding with

and then the same vrepl command as http://www.vestasys.org/doc/notes/ssh-repl/ :