添加如下组件:Core OS | Windows CE devices | Communication Services and Networking | Servers | Telnet Server
platform.reg中添加如下注册表内容:
[HKEY_LOCAL_MACHINE/COMM/TELNETD]
"IsEnabled"=dword:1
"UseAuthentication"=dword:1
"UserList"="Tnuser1;Tnuser2"
其中:
"IsEnabled"=dword:1(CE系统启动时开启Telnet服务)
"UseAuthentication"=dword:1(访问Telnet服务器时需要使用用户名和密码)
"UserList"="Tnuser1;Tnuser2"(允许访问Telnet服务器的用户列表)
添加Telnet Server组件之后,和其相关的默认注册表设置也会被添加进来,应该是被添加进了servers.reg文件中,我们在platform.reg文件中添加的注册表内容会覆盖这些默认设置。
默认添加的注册表内容如下:
; @CESYSGEN IF SERVERS_MODULES_TELNETD
; @CESYSGEN IF SERVERS_MODULES_SERVICES
[HKEY_LOCAL_MACHINE/Services/TELNETD/Accept/TCP-23]
; TCP port 23, default Telnet Port
"SockAddr"=hex:02,00,00,17,00,00,00,00,00,00,00,00,00,00,00,00
; @CESYSGEN IF CE_MODULES_TCPIP6
[HKEY_LOCAL_MACHINE/Services/TELNETD/Accept/TCP-23v6]
; TCP port 23, default Telnet Port
"SockAddr"=hex:17,00,00,17,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00
; @CESYSGEN ENDIF CE_MODULES_TCPIP6
[HKEY_LOCAL_MACHINE/Services/TELNETD]
"Context"=dword:1
"FriendlyName"="Telnet"
; @CESYSGEN ELSE
[HKEY_LOCAL_MACHINE/Drivers/BuiltIn/TELNETD]
; @CESYSGEN ENDIF SERVERS_MODULES_SERVICES
"Dll"="TELNETD.Dll"
"Order"=dword:9
"Keep"=dword:1
"Prefix"="TEL"
"Index"=dword:0
; @CESYSGEN ENDIF SERVERS_MODULES_TELNETD
[HKEY_LOCAL_MACHINE/COMM/ConnectionSharing/Servers/Telnet]
"InternalName"=""
"IsEnabled"=dword:00000000
"Port"=dword:00000017
"InternalPort"=dword:00000017
"Protocol"="TCP"
测试:
如同测试ftp server一样测试一下telnet server,如图: