[英]Disconnected from RDP after resetting windows firewall rules
我為我的 windows vm 中的所有配置文件禁用了防火牆。 但是,當我嘗試通過重置防火牆重新啟用它時,我失去了與 RDP 的連接,並且我無法再次與 VM 連接。 知道為什么會發生這種情況嗎?
正如@derpirscher 對您的防火牆規則所解釋的那樣,您應該禁用 Windows VM 上的防火牆,以通過 RDP 建立連接。
以下是對與 RDP 的連接進行故障排除的步驟。
確保 Windows 實例處於聯機/啟動狀態。
連接到交互式串行控制台
如何連接到串口控制台 2(交互模式)
ch -sn [CHANNEL_NAME]
並按任意鍵連接到頻道。 例如:SAC> cmd
The Command Prompt session was successfully launched.
SAC>
EVENT: A new channel has been created. Use "ch -?" for channel help.
Channel: Cmd0001
SAC> ch -sn cmd0001
Press any key to confirm connection to the channel.
用於故障排除的命令
檢查您的 RDP 服務是否正在偵聽(默認端口 3389)
C:\Windows\system32>netstat -an | find "3389"
檢查“遠程桌面服務”是否正在運行:
C:\Windows\system32>net start | find "Remote Desktop Services"
停止 windows RDP
以下服務依賴於遠程桌面服務服務。 停止遠程桌面服務服務也會停止這些服務。
C:\Windows\system32>net stop "Remote Desktop Services"
遠程桌面服務用戶模式端口重定向器
Do you want to continue this operation? (Y/N) [N]: y
The Remote Desktop Services UserMode Port Redirector service is stopping.
The Remote Desktop Services UserMode Port Redirector service was stopped successfully.
The Remote Desktop Services service is stopping.
The Remote Desktop Services service was stopped successfully
啟動 windows RDP
C:\Windows\system32>net start "Remote Desktop Services"
The Remote Desktop Services service is starting.
The Remote Desktop Services service was started successfully.
The Remote Desktop Services service was started successfully.
關閉 windows 防火牆
C:\Windows\system32>netsh advfirewall set allprofiles state off
開啟windows防火牆
C:\Windows\system32>netsh advfirewall set allprofiles state on
顯示 windows 防火牆狀態
C:\Windows\system32>netsh advfirewall show allprofiles
您還可以查看此RDP 故障排除、Windows VM 故障排除和連接到 Windows SAC以供參考。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.