在阿里云的ECS主机在续费后不能远程登录了,折腾了好久终于解决,步骤如下:
在云机器的CMD窗口输入:netstat -ano -p tcp | find "3389"
,没有返回结果就是没有开启,另外可以使用netstat -an
来查看所有活动连接Active Connections
设置允许远程桌面,或直接关闭防火墙
打开Control Panel\System and Security\System下的remote settings\remote,确保勾选上了remote desktop下的” allow remote …” 以及下面的CheckBox,Win10下还需检查:Settings>System>Remote Desktop, 确保打开了Enable Remote Desktop
确保开启了remote的相关服务:Remote Desktop Services & Remote Desktop Configuration等
以管理员身份运行CMD,输入命令:TASKLIST /M TERMSRV.DLL ,确保进程开启,如果返回结果类似如下,表明是有这个进程的:
Image Name PID Modules
========================= ======== ============================================
svchost.exe 856 termsrv.dll
打开“开始→运行”,输入“regedit”,打开注册表,进入以下路径:[HKEY_LOCAL_MACHINE\SYSTEM\ CurrentControlSet\Control\Terminal Server\Wds\rdpwd\Tds\tcp], 设置PortNamber 默认值为3389;再打开[HKEY_LOCAL_MACHINE\SYSTEM\CurrentContro1Set\Control\Tenninal Server\WinStations\RDP-Tcp],设置PortNamber 默认值为3389
重启后按照Step 1检查是否已开启3389端口。可在检查一两步之后立即测试是否已开启,提高效率。
- END -