一.安装telnet 主机(服务器) [root@ruirui Packages]# rpm -q telnet telnet-0.17-47.el6_3.1.x86_64 [root@ruirui Packages]# yum install telnet* 二.修改telnet的配置文件,使得服务开启 [root@ruirui mnt]# vim /etc/xinetd.d/telnet
# default: on
# description: The telnet server serves telnet sessions; it uses \
# unencrypted username/password pairs for authentication.
service telnet
{
flags = REUSE
socket_type = stream
wait = no
user = root
server = /usr/sbin/in.telnetd
log_on_failure += USERID disable = yes //这里将yes修改成no
}
三.关闭防火墙 [root@ruirui mnt]# service iptables stop 客户端登录: [root@ruirui mnt]# telnet 10.88.32.26 23 Trying 10.88.32.26... Connected to 10.88.32.26.
Red Hat Enterprise Linux Server release 6.4 (Santiago) Kernel 2.6.32-358.el6.x86_64 on an x86_64 login: frank Password: Last login: Thu Apr 30 09:15:37 from 10.88.32.12