简体   繁体   English

无法在 Mac OS X 上 rdp 到 Azure

[英]Can't rdp to Azure on Mac OS X

I am trying to Remote Desktop onto an Azure instance from Mac OS X, but can't find a tool that allows me to do it.我正在尝试从 Mac OS X 将远程桌面连接到 Azure 实例,但找不到允许我这样做的工具。 Address and username is fine, but none of the clients seem to have the capabilities to include the instance information.地址和用户名很好,但似乎没有一个客户端具有包含实例信息的能力。

I have so far tried the Miscrosoft RDC and CoRD but to no avail.到目前为止,我已经尝试过 Miscrosoft RDC 和 CoRD,但无济于事。

Has anyone succeeded in using RDP to an Azure instance on a Mac?有没有人成功地在 Mac 上使用 RDP 到 Azure 实例?

By default, you can't connect to an Azure Windows server except through the Windows Remote Desktop client.默认情况下,您无法连接到 Azure Windows 服务器,除非通过 Windows 远程桌面客户端。

To connect from OS X, whether through CoRD or the Microsoft Remote Desktop client for Mac, you need to turn off network level authentication:要从 OS X 连接,无论是通过 CoRD 还是 Mac 的 Microsoft 远程桌面客户端,您都需要关闭网络级别身份验证:

  1. Connect to the Azure server using the Remote Desktop client on a Windows machine在 Windows 计算机上使用远程桌面客户端连接到 Azure 服务器
  2. Under Control Panel, go to System, then open 'Advanced system settings'在控制面板下,转到系统,然后打开“高级系统设置”
  3. On the Remote tab, uncheck "Allow connections only from computers running Remote Desktop with Network Level Authentication (recommended)"在“远程”选项卡上,取消选中“仅允许来自运行具有网络级别身份验证的远程桌面的计算机的连接(推荐)”
  4. Re-connect from OS X从 OS X 重新连接

you need to create connect from microsoft remote desktop on mac您需要在 Mac 上从 Microsoft 远程桌面创建连接

add ip, user, password添加ip、用户、密码

and you can connect now你现在可以连接

if you still can't connect, check your azure endpoint setting如果仍然无法连接,请检查您的 Azure 端点设置

set the port that your firewall can pass设置你的防火墙可以通过的端口

I have the same problem with you, and I think there is nothing to do with the network level authentication.我和你有同样的问题,我认为与网络级别的身份验证无关。 The main reason is the default remote desktop app will connecting through port 3389, but your VM's default endpoint set another public port, here is what i do to solve it:主要原因是默认的远程桌面应用程序将通过端口 3389 连接,但您的 VM 的默认端点设置了另一个公共端口,这是我解决它的方法:

  1. Download the latest version of Microsoft Remote Desktop app at Mac app store.在 Mac 应用商店下载最新版本的 Microsoft 远程桌面应用。
  2. Add the port after your connection's DOMAIN/IP like yourvmdomain.com:yourpublicport.在连接的域/IP 之后添加端口,例如 yourvmdomain.com:yourpublicport。 You will find the public port on endpoint setting tab.您将在端点设置选项卡上找到公共端口。 To me, the public port of Remote Desktop is 58494, so the connection will be xx.xx.xx.xx:58494.对我来说,远程桌面的公共端口是 58494,所以连接将是 xx.xx.xx.xx:58494。

This works for me.这对我有用。

Download the new Microsoft remote desktop client , which will allow you to connect to Azure instances without changing the configuration.下载新的Microsoft 远程桌面客户端,这将允许您连接到 Azure 实例而无需更改配置。

(As suggested in the comment from Kim Burgess) (正如 Kim Burgess 的评论所建议的那样)

It's tricky to connect to an Azure Cloud Service (aka Web or Worker Role) from a Mac, since PaaS instances sit behind a load balancer.从 Mac 连接到 Azure 云服务(又名 Web 或辅助角色)很棘手,因为 PaaS 实例位于负载均衡器后面。 You therefore need to specify which instance to connect to via cookies.因此,您需要指定通过 cookie 连接到哪个实例。

Royal TS supports cookies, so I got this working: Royal TS 支持 cookie,所以我得到了这个工作:

  • Install Royal TS free version ( http://www.royalapplications.com/ts/osx/features )安装 Royal TS 免费版 ( http://www.royalapplications.com/ts/osx/features )
  • Add the Remote Desktop plugin添加远程桌面插件
  • Create new connection创建新连接
  • Enter usual details (server/username/password)输入通常的详细信息(服务器/用户名/密码)
  • Advanced > Connection > Load Balance Info > Cookie: mstshash=Your.Server#Your.Server_IN_0高级 > 连接 > 负载平衡信息 > Cookie: mstshash=Your.Server#Your.Server_IN_0

This cookie info is available in the RDP file you can download for your instance from the Azure management portal (just open it in a text editor).此 cookie 信息在 RDP 文件中可用,您可以从 Azure 管理门户为您的实例下载(只需在文本编辑器中打开它)。

I use the Microsoft Remote Desktop application on OSX to connect to an Azure VM.我使用 OSX 上的 Microsoft 远程桌面应用程序连接到 Azure VM。

Recently I set up a VM from a Windows machine and was able to connect successfully using the admin username and password, but found that I had to reset the admin password to connect from OSX.最近我从 Windows 机器上设置了一个 VM,并且能够使用管理员用户名和密码成功连接,但发现我必须重置管理员密码才能从 OSX 连接。

You can easily reset the password from the Azure portal for the VM.可以从 VM 的 Azure 门户轻松重置密码。 Go to "Support + troubleshooting/Reset Password".转到“支持 + 故障排除/重置密码”。

I often have to enter the user name in the form:我经常需要在表单中输入用户名:

  • PC name: xxx.xxx.xxx.xxx:yyyyy电脑名称:xxx.xxx.xxx.xxx:yyyyy
  • Gateway: No gateway configured网关:未配置网关
  • User name: localhost \user.name用户名: localhost \user.name

Hope that helps someone.希望对某人有所帮助。

To access Azure instances from a MAC download Microsoft Remote Desktop client in Appstore.要从 MAC 下载 Appstore 中的 Microsoft Remote Desktop 客户端访问 Azure 实例。 The default RDP client Azure provides doesnt work on a MAC. Azure 提供的默认 RDP 客户端无法在 MAC 上运行。 Worked for me为我工作

Check that your Networking Inbound Port rules (typically port 3389, but will change behind a load balancer) for the Azure VM allow you in.检查 Azure VM 的网络入站端口规则(通常是端口 3389,但会在负载均衡器后面更改)是否允许您进入。

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

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