Windows Azure VM 远程桌面连接问题

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/18324041/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-09 10:48:05  来源:igfitidea点击:

Windows Azure VM Remote desktop connection issue

windowsazure

提问by Jaleel

I created a windows azure VM with Windows server 2008 R2. The status of the server is running. The port is open. But I cannot RDP to it. It gives me an error

我使用 Windows Server 2008 R2 创建了一个 Windows azure VM。服务器的状态正在运行。端口是开放的。但我不能 RDP 到它。它给了我一个错误

Remote Desktop can't connect to the remote computer for one of these reasons:

  1. Remote access to the server is not enabled
  2. The remote computer is turned off
  3. The remote computer is not available on the network

Make sure the remote computer is turned on and connected to the network, and that remote access is enabled.

由于以下原因之一,远程桌面无法连接到远程计算机:

  1. 未启用对服务器的远程访问
  2. 远程计算机已关闭
  3. 远程计算机在网络上不可用

确保远程计算机已打开并连接到网络,并且已启用远程访问。

Any help ? I actually created twice but no luck

有什么帮助吗?我实际上创建了两次但没有运气

EDIT

编辑

I am able to connect from home. but not from work network. so definitely a work network restrictions. Could you suggest what should be my next step to make it accessible from work

我可以在家连接。但不是来自工作网络。所以肯定是工作网络限制。你能建议我下一步应该做什么来让它从工作中访问吗

回答by astaykov

RDP port (3389) is widely blocked from network administrators of most corporations. What you need to do is either of:

RDP 端口 (3389) 被大多数公司的网络管理员广泛阻止。您需要做的是:

  • Talking with your network administrator at work and ask for permission to use RDP port to connect to your Azure Virtual Machine
  • Configure different public portfor the RDP Endpoint. Setting it to 443 (the HTTPS Standard port) or 22 (Standard SSH port) might solve the issue without contacting system administrator
  • 与工作中的网络管理员交谈并请求使用 RDP 端口连接到 Azure 虚拟机的权限
  • 为 RDP Endpoint配置不同的公共端口。将其设置为 443(HTTPS 标准端口)或 22(标准 SSH 端口)可能会在不联系系统管理员的情况下解决问题

Of course, if you use that VM for Secure Web (which works on 443) you have to chose another port number.

当然,如果您将该 VM 用于 Secure Web(适用于 443),您必须选择另一个端口号。

回答by se7vanj

In my case,

就我而言,

After I did "Reset Remote", "Reset VM", Initially the Public and Private Port was different as expected, I changed both Public & Private to "3389" and then Edited the RDP File (which was originally downloaded from Azure) to have my UserID on it, then it worked. (Didn't bother on security as it is for a short session)

在我做了“重置远程”、“重置虚拟机”之后,最初公共和私人端口与预期不同,我将公共和私人更改为“3389”,然后编辑了 RDP 文件(最初从 Azure 下载)以具有我的用户 ID 就在上面,然后它就起作用了。(没有打扰安全,因为这是一个短暂的会议)

snapshot

快照

回答by ?????

I was also facing the same issue. Have followed the Below steps and it got resolved.

我也面临同样的问题。已经按照下面的步骤解决了。

  1. Changed the both port number to 3389.
  2. After changing, Restarted the VM once.
  3. On Restart, reset the Password with new credential.
  4. Clicked on connect and downloaded the RDP file.
  5. Executed the file and provided the User name and Credential.
  1. 将两个端口号更改为 3389。
  2. 更改后,重新启动虚拟机一次。
  3. 在重新启动时,使用新凭据重置密码。
  4. 单击连接并下载 RDP 文件。
  5. 执行文件并提供用户名和凭据。

Hope this helps to resolve the issue

希望这有助于解决问题

回答by Nouman Bhatti

In my case it's the proxy settings. I changed it form my chrome browser settings

就我而言,它是代理设置。我从我的 chrome 浏览器设置中更改了它

Settings -> show advanced settings -> Change Proxy settings -> LAN settings

设置 -> 显示高级设置 -> 更改代理设置 -> LAN 设置

and than enabling the proxy settings & Bypass proxy server for local addresses

而不是为本地地址启用代理设置和绕过代理服务器

回答by jcdevilleres

Just wanted to share what worked for me.

只是想分享对我有用的东西。

After receiving an error prompt:

收到错误提示后:

Connect is disabled for this virtual machine because of the following issues: Network interface 'vmwindows1094': Network security group 'VMWindows10-nsg' does not have inbound security rule that allows port 3389. VMWindows10-nsg

由于以下问题,此虚拟机的连接被禁用:网络接口“vmwindows1094”:网络安全组“VMWindows10-nsg”没有允许端口 3389 的入站安全规则。VMWindows10-nsg

I have added an inbound port rule. Under VM > Settings > Add inbound port rules.

我添加了一个入站端口规则。在下面VM > Settings > Add inbound port rules.

Port: 3389
Protocol/Source/Destination: Any (this can be configured based on your security rules)
Action: Allow

回答by Crismogram

Here's what works for me. My friend at work figured it out.

这对我有用。我在工作的朋友想通了。

1) In Azure, Create a Load Balancer.

1) 在 Azure 中,创建负载均衡器。

  • Accept the defaults but put your VM's public IP Address to the Public IP Address name.
  • 接受默认值,但将 VM 的公共 IP 地址置于公共 IP 地址名称中。

2) Inside the Load Balancer > Go to Inbound NAT rules Use HTTP, Port 80, Single Virtual Machine, Target your VM, Target Port is 3389.

2) 在负载均衡器内部 > 转至入站 NAT 规则使用 HTTP,端口 80,单个虚拟机,目标您的 VM,目标端口为 3389。

I don't know the underlying principles on how it works but it does. Thank you Mr. Arturo Tiangco

我不知道它如何工作的基本原则,但确实如此。谢谢 Arturo Tiangco 先生

回答by Peter

Problem

问题

An error message displays in the management portal for tenants when accessing a virtual machine using RDP (Connect->Desktop on the command bar), that Remote desktop can't connect to the remote computer for one of these reasons:

使用 RDP(命令栏上的“连接”->“桌面”)访问虚拟机时,租户的管理门户中会显示一条错误消息,由于以下原因之一,远程桌面无法连接到远程计算机:

  • The access to the server is not enabled.
  • The remote server is turned off.
  • The remote computer is not available on the network.
  • 未启用对服务器的访问。
  • 远程服务器已关闭。
  • 远程计算机在网络上不可用。

Recommendation

推荐

You may need to include the public profile in the setting that allows Remote Desktop through the virtual machine's firewall. You will need to adjust the firewall setting in the Control Panel of the tenant's virtual machine using Virtual Machine Manager. Perform the following procedure:

您可能需要在允许远程桌面通过虚拟机防火墙的设置中包含公共配置文件。您将需要使用 Virtual Machine Manager 在租户虚拟机的控制面板中调整防火墙设置。执行以下过程:

  • In Virtual Machine Manager on the VMs and Services tab, find the cloud that is hosting the tenant's virtual machine, and select that virtual machine.
  • On the ribbon, click Connect or View->Connect via Desktop.
  • Sign on with the computer's Administrator password the tenant set when the virtual machine was created.
  • In Control Panel, click System and Security->Windows Firewall->Allow an App or Feature through Windows Firewall.
  • Scroll down to Remote Desktop and make sure the Public profile is checked. By default it is not.
  • 在虚拟机管理器的虚拟机和服务选项卡上,找到托管租户虚拟机的云,然后选择该虚拟机。
  • 在功能区上,单击“连接”或“查看”->“通过桌面连接”。
  • 使用租户在创建虚拟机时设置的计算机管理员密码登录。
  • 在控制面板中,单击系统和安全->Windows 防火墙->允许应用程序或功能通过 Windows 防火墙。
  • 向下滚动到远程桌面并确保选中公共配置文件。默认情况下不是。