六、telnet服务启动

  1. 因为telnet服务是由xinetd调用,所以只要重新启动xinetd即可  
  2. [root@rhel52 /]# service xinetd restart  
  3. Stopping xinetd:                                  [  OK  ]  
  4. Starting xinetd:                                  [  OK  ]  
  5. [root@rhel52 /]# 

七、telnet服务测试

  1. Microsoft Windows [版本 6.1.7100]  
  2. 版权所有 (c) 2009 Microsoft Corporation.保留所有权利.  
  3. C:\>telnet 192.168.238.220  
  4. 正在连接192.168.238.220...  
  5. Red Hat Enterprise Linux Server release 5 (Tikanga)  
  6. Kernel 2.6.18-8.el5 on an i686  
  7. login: root  
  8. Password:  
  9. Last login: Sat Aug  1 22:47:15 from 192.168.238.1  
  10. [root@rhel52 ~]# 

八、telnet端口更改

  1. 设定配置文件/etc/services  
  2. [root@CentOS5 /]#vi /etc/services 

找到下面的两行:

  1. telnet          23/tcp  
  2. telnet          23/udp  


相关内容