更改终端服务(RDP 远程桌面) 默认3389端口

配置远程服务器时候有一个非常重要的工作,为了远程控制方便经常要启用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啦!

<!-- [if !supportEmptyParas]--><!-- [endif]-->

但是客户端登录时怎么修改对应服务端口呢,各种说法不一,好像都不好使,请看下面我找到的最简方法(就是在填写服务端 IP 时加上端口号哪,比如 x.x.x.x:3390 )。

<!-- [if !supportEmptyParas]--><!-- [endif]-->

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 ).

  • 1
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值