Running the following commands assumes that you have already started OpenSSH server at workstation and opened port 22 at your home router. Opening 22 or any other port at workstation is not needed, the only precondition is that you should be able to ping your home PC from the workstation.
Also you can directly run some programs which require X server (but the interaction speed will be pretty slow) by adding -X key:
How to setup SSH tunnel to your workstation from outside corporate network (for example, from home to work)?
You should run this command on your workstation:ssh -f -N -q -R 2222:localhost:22 yourhomeusername@yourhomeipNow you can connect from home to your workstation via SSH using this command:
ssh -p 2222 yourworkusername@localhostYou can even create a fully-functional session on your Linux desktop using No Machine tools (http://www.nomachine.com/). Just install node and server components on your workstation and connect via client from your home PC. A new session will be created.
Also you can directly run some programs which require X server (but the interaction speed will be pretty slow) by adding -X key:
ssh -X -p 2222 yourworkusername@localhost $ xclock
How to setup VNC tunnel to your workstation from outside corporate network?
You should run this command on your workstation:ssh -f -N -q -R 2222:localhost:5900 yourhomeusername@yourhomeipNow you can connect from home to your workstation via VNC using host "localhost" and port 2222