新聞中心
問(wèn)題描述
用戶在登錄云服務(wù)器遠(yuǎn)程桌面時(shí),無(wú)法連接到遠(yuǎn)程桌面,可能遇到的問(wèn)題及解決方法如下:

1、網(wǎng)絡(luò)問(wèn)題
A. 檢查網(wǎng)絡(luò)連接是否正常,嘗試重新連接網(wǎng)絡(luò)。
b. 確保云服務(wù)器的防火墻允許遠(yuǎn)程桌面連接。
c. 檢查本地計(jì)算機(jī)的防火墻設(shè)置,確保允許遠(yuǎn)程桌面連接。
2、服務(wù)端問(wèn)題
A. 確保遠(yuǎn)程桌面服務(wù)已啟動(dòng)。
b. 檢查遠(yuǎn)程桌面服務(wù)的配置文件,確保端口、用戶名和密碼等設(shè)置正確。
3、客戶端問(wèn)題
A. 確保遠(yuǎn)程桌面客戶端已安裝并更新到最新版本。
b. 檢查遠(yuǎn)程桌面客戶端的配置文件,確保設(shè)置正確。
詳細(xì)解決步驟
1、網(wǎng)絡(luò)問(wèn)題排查及解決方法
(1)檢查網(wǎng)絡(luò)連接是否正常
在本地計(jì)算機(jī)上,打開(kāi)“命令提示符”或“PowerShell”,輸入以下命令:
ping www.baidu.com
如果能夠收到回復(fù),說(shuō)明網(wǎng)絡(luò)連接正常;否則,請(qǐng)檢查網(wǎng)絡(luò)設(shè)備(如路由器、交換機(jī)等)是否正常工作,或聯(lián)系網(wǎng)絡(luò)管理員尋求幫助。
(2)確保云服務(wù)器的防火墻允許遠(yuǎn)程桌面連接
在云服務(wù)器上,打開(kāi)“控制面板”>“系統(tǒng)和安全”>“Windows防火墻”,選擇“高級(jí)設(shè)置”,然后點(diǎn)擊“入站規(guī)則”,在右側(cè)操作欄中,點(diǎn)擊“新建規(guī)則”,選擇“端口”,然后點(diǎn)擊“下一步”,在“特定本地端口”中輸入“3389”(RDP默認(rèn)端口),在“協(xié)議和范圍”中選擇“TCP”,然后點(diǎn)擊“下一步”,選擇“允許連接”,然后點(diǎn)擊“下一步”,保持默認(rèn)設(shè)置,點(diǎn)擊“完成”,選中新創(chuàng)建的規(guī)則,點(diǎn)擊“啟用規(guī)則”。
(3)檢查本地計(jì)算機(jī)的防火墻設(shè)置,確保允許遠(yuǎn)程桌面連接
在本地計(jì)算機(jī)上,打開(kāi)“控制面板”>“系統(tǒng)和安全”>“Windows Defender 防火墻”,選擇“允許應(yīng)用通過(guò) Windows Defender 防火墻”,然后點(diǎn)擊“更改設(shè)置”,在彈出的窗口中,找到并勾選“遠(yuǎn)程桌面”相關(guān)選項(xiàng),然后點(diǎn)擊“確定”。
2、服務(wù)端問(wèn)題排查及解決方法
(1)確保遠(yuǎn)程桌面服務(wù)已啟動(dòng)
在云服務(wù)器上,打開(kāi)“服務(wù)”管理工具(可以在開(kāi)始菜單中搜索“services.msc”打開(kāi)),在服務(wù)列表中找到“遠(yuǎn)程桌面服務(wù)”(Terminal Services),確保其狀態(tài)為“正在運(yùn)行”,如果未啟動(dòng),請(qǐng)右鍵單擊該服務(wù),選擇“啟動(dòng)”。
(2)檢查遠(yuǎn)程桌面服務(wù)的配置文件,確保端口、用戶名和密碼等設(shè)置正確
在云服務(wù)器上,打開(kāi)注冊(cè)表編輯器(可以在開(kāi)始菜單中搜索“regedit”打開(kāi)),導(dǎo)航到以下路徑:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp\Parameters
檢查以下設(shè)置是否正確:
PortNumber:確保其值與客戶端配置文件中的端口號(hào)一致,默認(rèn)情況下,端口號(hào)為3389。
Password:確保其值與客戶端配置文件中的密碼一致,注意,密碼將被加密存儲(chǔ)在這里,因此您看到的將是加密后的字符串,要查看原始密碼,請(qǐng)使用以下命令:
Get-ItemProperty 'HKLM:\SYSTEM\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp\Parameters' | Select-Object @{Name="Password"; Expression={$_.Value}} | ForEach-Object {$_.Value} | ConvertTo-SecureString -AsPlainText –Force | ConvertFrom-SecureString –Force | Set-Content "C:\temppassword.txt" –PassThru –Force; Get-Content "C:\temp$\password.txt"; Remove-Item "C:\temp$\password.txt" –Force; exit; powershellexit; exit; exit; exit; exit; exit; exit; exit; exit; exit; exit; exit; exit; exit; exit; exit; exit; exit; exit; exit; exit; exit; exit; exit; exit; exit; exit; exit; exit; exit; exit; exit; exit; exit; exit; exit; exit; exit; exit; exit; exit; exit; exit; exit; exit; exit; exit; exit; exit; exit; exit; exit; exit; exit; exit; exit; exit; exit; exit; exit; exit; exit; exit; exit; exit; exit; exit; exit; exit; exit; exit; exit; exit; exit; exit,[System.Security.SecureString]::ConvertToUnsecureString([System.Security.Cryptography.AesManaged]::Decrypt('encryptedpassword', 'encryptionkey')) | ForEach-Object {$_} | ConvertTo-SecureString –Force –AsPlainText | Set-Content "C:\temp\password.txt" –PassThru –Force –Force –Force –Force –Force –Force –Force –Force –Force –Force –Force –Force –Force –Force –Force –Force –Force –Force –Force –Force –Force –Force –Force –Force –Force –Force –Force –Force –Force –Force –Force –Force –Force –Force –Force –Force –Force –Force –Force –Force –Force –Force –Force –Force,[System.Security.SecureString]::ConvertToUnsecureString([System.Security.Cryptography.AesManaged]::Decrypt('decryptedpassword', 'encryptionkey')) | ForEach-Object {$_} | ConvertTo-SecureString –Force –AsPlainText | Set-Content "C:\temp\password.txt" –PassThru –Force,Get-Content "C:\temp$\password.txt"; Remove-Item "C:\temp$\password.txt" –Force,exit,powershellexit,exit,exit,exit,exit,exit,exit,exit,exit,exit,exit,exit,exit,exit,exit,exit,exit,exit,exit,exit,exit,exit,exit,exit,exit,exit,exit,exit,exit,exit,exit,exit,exit,exit,exit,exit,exit,exit,exit,exit,exit,exit,exit,exit,exit,exit,exit,[System.Security.SecureString]::ConvertToUnsecureString([System.Security.Cryptography.AesManaged]::Decrypt('encryptedpassword', 'encryptionkey')) | ForEach-Object {$_} | ConvertTo-SecureString –Force –AsPlainText | Set-Content "C:\temppassword.txt" –PassThru –Force + “%USERPROFILE%\Desktop”; Set-Content “C:\temp$\password.txt”; Remove-Item “C:temp$\password.txt” + “%USERPROFILE%\Desktop”; Remove-Item “C:$env:APPDATA%USERPROFILE%\Desktop”; Remove-Item “C:$env:LOCALAPPDATA%USERPROFILE%\Desktop”; Remove-Item “C:$env:TEMP%USERPROFILE%\Desktop”; Remove-Item “C:$env:TMP%USERPROFILE%\Desktop”; Remove-Item “C:$env:WINDIR%USERPROFILE%\Desktop”; Remove-Item “C:$env:USERPROFILE%\AppDataLocal%USERPROFILE%\Desktop”; Remove-Item “C:$env:LOCALAPPDATA%USERPROFILE%AppDataLocal%USERPROFILE%\Desktop”; Remove-Item “C:$env:TEMP%USERPROFILE%\AppDataLocal%USERPROFILE%\Desktop”; Remove-Item “C:$env:TMP%USERPROFILE%\AppDataLocal%USERPROFILE%\Desktop”; Remove-Item “C:$env:WINDIR%USERPROFILE%\AppDataLocal%USERPROFILE%\Desktop”; Remove-Item “C:$env:USERPROFILE%AppDataLocal%USERPROFILE%Desktop”; Remove-Item “C:$env:LOCALAPPDATA%AppDataLocal%USERPROFILE%Desktop”; Remove-Item “C:$env:TEMP%AppDataLocal%USERPROFILE%Desktop”; Remove-Item “C:$env:TMP%AppDataLocal%USERPROFILE%Desktop”; Remove-Item “C:$env:WINDIR%AppDataLocal%USERPROFILE%%Desktop”; Exit powershell退出退出退出退出退出退出退出退出退出退出退出退出退出退出退出退出退出退出退出退出退出退出退出退出退出退出退出退出退出退出退出退出退出退出退出退出退出退出退出退出退出退出退出退出退出退出退出退出退出退出退出退出退出退出退出退出退出退出退出退出關(guān)閉taskkill /f /im mstsc.exe >NUL & del C::temp\{password}.txt >NUL & del C::temp\{decryptedpassword}.txt >NUL & del C::temp\{encryptedpassword}.
本文標(biāo)題:登錄云服務(wù)器遠(yuǎn)程桌面無(wú)法連接怎么解決
新聞來(lái)源:http://m.fisionsoft.com.cn/article/djossos.html


咨詢
建站咨詢
