修改telnet配置文件:
vi /etc/xinetd.d/telnet
把disable的值改成no
修改iptables:在/etc/sysconfig/iptables在该文件中添加一行:-A INPUT -m state --state NEW -m tcp -p tcp --dport 23 -j ACCEPT重启xinetd服务:[root@localhost ~]# service xinetd restart停止 xinetd: [确定]启动 xinetd: [确定]启动Telnet服务:[root@localhost ~]# chkconfig telnet on获得服务器IP:[Oracle@localhost tmp]$ /sbin/ifconfig | grep 192 inet addr:192.168.1.108 Bcast:192.168.1.255 Mask:255.255.255.0客户端通过Telnet连接服务器:Enterprise Linux Enterprise Linux Server release 5.5 (Carthage)Kernel 2.6.18-194.el5 on an i686login: oraclePassWord:Last login: Mon Aug 17 17:32:10 from localhost-bash: /home/oracle/.bash_profile: line 24: syntax error: unexpected end of file-bash-3.2$ bash[oracle@localhost ~]$ w18:10:58 up 3:31, 5 users, load average: 0.10, 0.08, 0.08USER TTY FROM LOGIN@ IDLE JCPU PCPU WHAToracle :0 - 14:42 ?xdm? 1:10 0.08s /usr/bin/gnome-oracle pts/1 :0.0 17:23 3:11 0.02s 0.02s bashoracle pts/2 :0.0 16:37 53:33 0.07s 10.96s gnome-terminaloracle pts/3 :0.0 17:56 14:15 0.00s 0.00s bashoracle pts/4 localhost 18:10 0.00s 0.00s 0.00s w以上已成功连接。新闻热点
疑难解答