更改RDP端口后无法访问Azure虚拟机 [英] Azure Virtual Machine not accessible after RDP port changed
问题描述
我已将Azure虚拟机(Windows Server)上注册表中的RDP端口更改为8080.现在无法从外部访问它,我无法连接它.
I've changed RDP port to 8080 in registry on my Azure Virtual Machine (Windows Server). Now it is not accessible from outside, I cant connect it.
Azure VM由资源管理器(不是Classic VM)管理.
Azure VM is managed by Resource Manager (not Classic VM).
更新:
调整安全性规则,因此不予帮助.
Turning secuiruty rules so allow all not helped.
推荐答案
我已将Azure虚拟机上注册表中的RDP端口更改为8080 (Windows服务器)
I've changed RDP port to 8080 in registry on my Azure Virtual Machine (Windows Server)
我们可以使用CustomScriptextension 检查 RDP是否在端口8080上侦听.
We can use CustomScriptextension to check if RDP listening on port 8080.
netstat -ant | findstr "8080"
如果您的端口未在端口8080上侦听,则我们可能需要重新启动RDP服务.
If your port not listening on Port 8080, we may need to restart RDP service.
如果RDP在端口8080上侦听,我们可以使用CustomScriptextension 禁用 Windows防火墙.
netsh advfirewall set allprofiles state off
If RDP listening on port 8080, we can use CustomScriptextension to disable windows firewall.
netsh advfirewall set allprofiles state off
关于扩展程序,我们使用命令创建一个ps1文件,然后通过Azure门户上载它.
About Extension, we create a ps1 file with the command, and upload it via Azure portal.
这篇关于更改RDP端口后无法访问Azure虚拟机的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!