telnet: connect to address 192.168.1.103: Connection refused

来源:互联网 发布:背单词软件排名 编辑:程序博客网 时间:2024/05/16 17:53
解决问题:

ssh 192.168.1.103

# netstat -tnl |grep 23

rpm -qa telnet-server

# vi /etc/xinetd.d/telnet

把disable         = yes

修改为:

disable         = no

# service xinetd restart# netstat -tnl |grep 23
tcp        0      0 0.0.0.0:23                  0.0.0.0:*                   LISTEN

再次尝试远程登录

# telnet 192.168.1.103

Trying 192.168.1.103...
Connected to localhost (192.168.1.103).
Escape character is '^]'.
Red Hat Enterprise Linux AS release 4 (Nahant Update 8)
Kernel 2.6.9-89.EL on an x86_64
login: root
Password:
Login incorrect

总是提示密码不正确

主机 192.168.1.103,添加一个普通用户,尝试使用此普通用户登录

[root@rac3 ~]# useradd fei
[root@rac3 ~]# passwd fei

[oracle@localhost ~]$ telnet 192.168.1.103
Trying 192.168.1.103...
Connected to localhost (192.168.1.103).
Escape character is '^]'.
Red Hat Enterprise Linux AS release 4 (Nahant Update 8)
Kernel 2.6.9-89.EL on an x86_64
login: root
Password:
Login incorrect

login: fei
Password:

[fei@rac3 ~]$

使用普通用户登录后,再切换到root

[fei@rac3 ~]$ su -

Password:
[root@rac3 ~]#

原来是为了安全,限制了root用户登录。





原创粉丝点击