Telnet Server

Telnet
[root@hding ~]# yum install telnet-server
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: mirrors.xmission.com
 * updates: mirrors.xmission.com
 * addons: mirrors.xmission.com
 * extras: mirrors.xmission.com
Setting up Install Process
Parsing package install arguments
Resolving Dependencies
--> Running transaction check
---> Package telnet-server.x86_64 1:0.17-41.el5 set to be updated
--> Finished Dependency Resolution

Dependencies Resolved

===========================================================================
 Package              Arch          Version              Repository   Size
===========================================================================
Installing:
 telnet-server        x86_64        1:0.17-41.el5        base         36 k

Transaction Summary
===========================================================================
Install      1 Package(s)         
Update       0 Package(s)         
Remove       0 Package(s)         

Total download size: 36 k
Is this ok [y/N]: y
Downloading Packages:
telnet-server-0.17-41.el5.x86_64.rpm                |  36 kB     00:00     
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing     : telnet-server                                     [1/1] 

Installed: telnet-server.x86_64 1:0.17-41.el5
Complete!



服务启动跟其它的有点不一样
[root@hding ~]# vi /etc/xinetd.d/telnet 
  1 # default: on
  2 # description: The telnet server serves telnet sessions; it uses \
  3 #   unencrypted username/password pairs for authentication.
  4 service telnet
  5 {
  6     disable = no
  7     flags       = REUSE
  8     socket_type = stream
  9     wait        = no
 10     user        = root
 11     server      = /usr/sbin/in.telnetd
 12     log_on_failure  += USERID
 13 }



start
[root@hding ~]# service xinetd start
Starting xinetd: 
[root@hding ~]# chkconfig telnet on



test
[root@hding ~]# telnet 192.168.10.3
Trying 192.168.10.3...
Connected to 192.168.10.3 (192.168.10.3).
Escape character is '^]'.
CentOS release 5.3 (Final)
Kernel 2.6.18-128.el5 on an x86_64
login: dh
Password: 
Last login: Sun Oct 12 15:20:02 from 10.103.50.66
[dh@hding ~]$ exit
logout




你可能感兴趣的:(linux,telnet)