简体   繁体   English

无法RDP到CentOs 7 Azure VM

[英]Cannot RDP to CentOs 7 Azure VM

I haven't been able to RDP to my newly created CentOs 7 Azure VM. 我无法RDP到新创建的CentOs 7 Azure VM。

In my attempt to accomplish this I followed the steps listed here: https://blogs.msdn.microsoft.com/cloud_solution_architect/2015/05/02/remote-desktop-to-your-linux-azure-virtual-machine/ 在我尝试完成此操作时,我按照此处列出的步骤操作: https//blogs.msdn.microsoft.com/cloud_solution_architect/2015/05/02/remote-desktop-to-your-linux-azure-virtual-machine/

To summarize, I've installed GNOME Desktop, VNC Server, and xrdp. 总而言之,我已经安装了GNOME桌面,VNC服务器和xrdp。 The instructions above talk about adding an endpoint, but since I'm using the Resource Manager deployment model, there's no settings or menu items where I can create one. 上面的说明讨论了添加端点,但由于我使用的是资源管理器部署模型,因此没有设置或菜单项可以创建一个。 Instead I added inbound rules to my network security group to allow traffic to ports used by xrdp and vncserver. 相反,我将入站规则添加到我的网络安全组,以允许流量到xrdp和vncserver使用的端口。 Rdp and VNC viewer both timeout when I attempt to connect. 尝试连接时,Rdp和VNC查看器都超时。

Additionally, I used the sudo netstat -ant command to confirm that both ports (for xrdp and vncserver) are both in the "LISTEN" state. 另外,我使用了sudo netstat -ant命令来确认两个端口(用于xrdp和vncserver)都处于“ LISTEN”状态。

What am I missing here? 我在这里想念什么?

Thanks in advance. 提前致谢。

This is a common problem I've seen when defining Azure NSGs. 这是我在定义Azure NSG时遇到的常见问题。 For your inbound Azure NSG rules, the source port needs to be "*" because your client will use a random port on the client side. 对于入站Azure NSG规则,源端口必须为“*”,因为您的客户端将使用客户端上的随机端口

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

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