昨天,今天,明天,每天的每天,你是否都多懂得一点点...

星期二, 六月 12, 2018

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

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



--
Feng

1 条评论:

jorgeefrrr828 说...

?I used to be very pleased to search out this internet-site.I needed to thanks for your time for this glorious read!! I positively having fun with each little little bit of it and I've you bookmarked to check out new stuff you blog post. online casino real money

其它博客地址

此博客的同步博客地址: http://fengnz.wordpress.com
这里进入我的MSN SPACE.