---------- /| /| ------------
| Home | | | | | | Work |
| |--------| |---------------------| |-------------| |
|ssh-serv| Firewall:Port-22=open Firewall | |
---------- | | | | ------------
|/ |/
Here is the scenario for the above picture:
A worker has access at his Work machine and has also set up a Home ssh server.
The worker wants to access his Work machine from his PC@Home but the policy of the company restricts access via the Firewall@Work, but allows him to connect via reverse ssh tunnel. So the worker gives the following command from his workstation@Work :
ssh -fN -R 19999:localhost:22 Home-user@Home
Now from his PC@Home he is able to give the following command and connect to the ssh server of his workstation@Work:
ssh -v Work-user@localhost -p 19999
Is it possible for the worker to use rsync to copy a directory from his PC@Home to his workstation@Work using the existing tunnel?
Best Answer
I think the feature you're looking for is called connection sharing. Add this to your
$HOME/.ssh/config
file:excerpt #1 from SSH Can Do That? Productivity Tips for Working with Remote Servers
excerpt #2
References