NO IMAGE

 

配置遠端伺服器時候有一個非常重要的工作,為了遠端控制方便經常要啟用windows的遠端桌面終端,自己使用是方便了,但也給系統留下了隱患,如
果系統安全策略配置不好很有可能被人利用而入侵,一般情況下把預設的3389埠改成其它埠可以降低風險,使入侵者不容易利用。

下面是利用登錄檔更改3389埠的方法:
HKEY_LOCAL_MACHINE/System/CurrentControlSet/Control/Terminal
Server/Wds/Repwd/Tds/Tcp 看到那個PortNumber沒有?0xd3d,這個是16進位制,就是3389啦
修改鍵值,注意用10進位制的去修改(預設的是16進位制的),這個值是RDP(遠端桌面協 議)的預設值,也就是說用來配置以後新建的RDP服務的,要改已經建立的RDP服務,我們去下一個鍵值:

HKEY_LOCAL_MACHINE/SYSTEM/CurrentControlSet/Control/TerminalServer/WinStations
這 裡應該有一個或多個類似RDP-TCP的子健(取決於你建立了多少個RDP服務),一樣改掉PortNumber,重新啟動計算機,就OK啦!

 

但是客戶端登入時怎麼修改對應服務埠呢,各種說法不一,好像都不好使,請看下面我找到的最簡方法(就是在填寫服務端
IP
時加上埠號哪,比如
x.x.x.x:3390

)。

 

How do I change the
connection port on the RDP Client?

When working
with Terminal Server or RDP you have the choice to change the XP RDP 5.1 or 5.2
client connecting port.

For the
“old” Windows 2000 Terminal Server client port changes see Use
Terminal Server Client to Connect to a Different Port

.

If you’ve
changed the listening port on the TS from its’ default – 3389 (Change
Terminal Server Listening Port

)- you’ll also need to configure your client
to connect to the new port. Changing the connection port on the RDP clients is
quite easy.

To Alter the
Port on the client side:

  1. Go to the Start menu and
    click on Run.
  2. On the Run menu type MSTSC
    and click Enter.
  3. In the RDP window, in the
    Computer box, scroll to the computer name or IP to which you wish to
    connect.
  4. Add a “:Port”
    (without
    the quotes) where “Port” is the decimal value of the destination
    port.

        

 

 

  1. Press Connect.

Another method of connecting to a different port
that default is to run the MSTSC command with the required command line
parameters:

/v:ServerName[:
Port]

For example:

MSTSC /v:192.168.0.150:3390

Note:

To use RDP on
computers with operating systems other than Windows XP/2003 you will first need
to install the RDP client (Download
RDP 5.2

).