Không thể truy cập Remote Desktop vào VPS Container
Lỗi
Khi truy cập Remote Desktop vào server thì bị thông báo lỗi sau
""""""""""
Remote Desktop can't connect to the remote computer for one of these reasons:
-----------------------------------------------------------------------------------
Desktop can't connect to the remote computer for one of these reasons:
1) Remote access to the server is not enabled
2) The remote computer is turned off
3) The remote computer is not available on the network
Make sure the remote computer is turned on and connected to the network, and that remote access is enabled.
http://answers.microsoft.com/en-us/windows/forum/windows_xp-networking/remote-desktop-cant-connect-to-the-remote-computer/c07fe76a-55b4-4eab-ab17-e8ffc61c8ec8
""""""""""
Giải thích
Có khá nhiều nguyên nhân dẫn đến lỗi trên nhưng có 2 nguyên nhân chính là có thể là do dịch vụ Terminal service trên VPS đã bị disabled hay port remote desktop đã bị thay đổi từ 3389 thành một port nào khác
Cách kiểm tra và xử lý
Remote Desktop vào server HardWare Node và mở cửa số CMD
Gõ các lệnh sau để kiểm tra xem dịch vụ Terminal service có bị stop trong Container hay không
vzlist -a
Gõ tiếp lệnh sau để xem dịch vụ Terminal server có được Enable, nếu Enable thì thông số REG_DWORD = 0x0 như bên dưới
C:\Documents and Settings\Administrator>
reg query "HKEY_LOCAL_MACHINE\vz109\MACH
INE\SYSTEM\CurrentControlSet\Control\Terminal Server" /v fDenyTSConnections
Kết quả
HKEY_LOCAL_MACHINE\vz109\MACHINE\SYSTEM\CurrentCon trolSet\Control\Terminal Serve
r
fDenyTSConnections REG_DWORD 0x0
Hoặc bạn có thể sử dụng PMC để xem dịch vụ Terminal có chạy trên VPS
Nếu dịch vụ Terminal Server đang chạy trên VPS thì bạn tiếp tục kiểm tra xem dịch vụ này đang Listen trên port nào
Trên server HardWare Node ---> Start ---> Run --gõ regedit
Vào đường dẫn sau:
HKEY_LOCAL_MACHINE\vs109\MACHINE\SYSTEM\CurrentCon trolSet\Control\Terminal Server\WinStations\RDP-Tcp
Xem thông số Port Number bạn sẽ thấy Port Number của VPS là bao nhiêu
Sau khi đã kết nói xem xong bạn Remote Desk bằng Port trên
Enabled Remote Desktop trên windows bằng dòng lệnh
Lỗi không Remote Desktop vào được Windows
Chúc các bạn thành công!