I setup my VPN on both of my mac os and Windows. I usually work on my Mac OS. The VPN and remote desktop is working fine.
Today is a bit cold. I work with my surface pro in the bed. But suddenly, the remote desktop via VPN stop working. The VPN can be connected, but I couldn’t ping my PC in office.
I don’t have time to do the troubleshooting. While my mac os is working fine, I decide to use it as a middle man to connect to my office PC.
Only one command is needed to make this work.
putty -L 127.0.0.1:1234:192.168.0.75:3389 fengnz@fengmac-2
I use putty instead of openSSH on windows.
What this command does is forwarding the connection to my local port 1234 to 192.168.0.75’s 3389 port via my mac os. 192.168.0.75 is my office pc’s IP. 3389 is the remote desktop port.
Then start remote desktop client and connect to 127.0.0.1:1234
You may need to change the login account. The login account should contains office network’s name. For example, company/username