【发布时间】:2016-09-09 19:11:04
【问题描述】:
我更改了 Azure VM 上的 RDP 端口。现在我无法连接到它。可能是因为我忘记设置防火墙以允许新端口。现在我无法访问它。
我不确定我之前是否在该 VM 上设置过 Powershell。但是,当我使用 Enter-PSSession 时,它给了我这个错误:
Enter-PSSession : Connecting to remote server 40.xx.xxx.xxx failed with the following error message : WinRM cannot
complete the operation. Verify that the specified computer name is valid, that the computer is accessible over the
network, and that a firewall exception for the WinRM service is enabled and allows access from this computer. By
default, the WinRM firewall exception for public profiles limits access to remote computers within the same local
subnet. For more information, see the about_Remote_Troubleshooting Help topic.
【问题讨论】:
-
您是否尝试将端口更改回来?如果不能:您是否更改了端点(或网络安全组的入站端口映射)以映射到您的新端口?在任何情况下:这应该在 ServerFault 上,而不是 StackOverflow(它与编程无关)。
-
谢谢。问题是如何在没有 RDP 的情况下更改端口。我在门户中找到了一个可以上传脚本的工具,它完成了这项工作。
标签: azure azure-virtual-machine rdp