简体   繁体   English

如何通过VNET网关从Mac RDP到Azure VM

[英]How to rdp from mac to azure vm through vnet gateway

I am trying to rdp from my local mac to an Azure instance through a (IKEv2) vpn connection. 我正在尝试通过(IKEv2)vpn连接从本地Mac rdp到Azure实例。 I am never prompted for a password, and it looks like the connection just times out. 永远不会提示我输入密码,并且看起来连接刚刚超时。 The error code I get is 0x204. 我得到的错误代码是0x204。

I have tried using both Microsoft Remote Desktop 8 and 10 for mac. 我已尝试同时使用Mac的Microsoft远程桌面8和10。

The connection is active and reports that it is connected. 连接处于活动状态,并报告已连接。

From the mac, I can connect to another VM (in the same azure account) which is not running behind a vpn. 从Mac,我可以连接到另一个不在 vpn后面运行的VM(在同一Azure帐户中)。

From Parallels Desktop (with networking set to Shared mode and the vpn connection active on the mac), I can successfully connect using the windows rdp client. 从Parallels Desktop(将网络设置为共享模式,并且在Mac上处于活动状态的vpn连接),我可以使用Windows rdp客户端成功连接。

So it seems the Microsoft RDP-client for mac is not using the vpn connection. 因此,似乎Mac的Microsoft RDP客户端未使用vpn连接。

Is there a way to make it do so? 有没有办法做到这一点?

Is there another solution, that will allow me to rdp to an Azure VM from my mac (without going through Parallels)? 是否有另一种解决方案,该解决方案将使我能够从mac(无需通过Parallels)从rdp到Azure VM?


Note: This is not the same question as this , since that is not about going through an azure vnet gateway. 注:这是不一样的问题, 这个 ,因为这是不是通过一个蓝色的互联星空门户去。

I needed to add hosts file entries for each azure site I needed to access. 我需要为需要访问的每个蓝色站点添加主机文件条目。

For example for accessing my-vm-name.someregion.cloudapp.azure.com , I needed to add a hosts file entry for it's private IP within the subnet. 例如,访问my-vm-name.someregion.cloudapp.azure.com ,我需要为其子网内的专用IP添加一个主机文件条目。 Eg 10.2.0.100 . 例如10.2.0.100

The reason everything worked in Windows under Parallels, is that the relevant entries had already been added to the hosts file previously. 一切在Windows下在Parallels下都能正常工作的原因是,相关条目以前已经添加到了hosts文件中。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM