• 欢迎订阅我的Youtube频道
  • 欢迎加入我的电报群

Remote desktop without setting up VPN on client machine, use a middle man

网络技术 fennng 2年前 (2018-06-11) 889次浏览 0个评论

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 [email protected]

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


峰享技术 , 版权所有丨如未注明 , 均为原创丨本网站采用BY-NC-SA协议进行授权
转载请注明原文链接:Remote desktop without setting up VPN on client machine, use a middle man
喜欢 (0)
发表我的评论
取消评论

表情 贴图 加粗 删除线 居中 斜体 签到

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址