很奇怪:telnet/rlogin无法使用的问题
最近碰到一个非常奇怪的问题,一个Ultra_5-100的机器无法通过telnet/rlogin登录,但是ftp和rsh是可以使用的
# rsh 172.25.198.57 -l root "uname -a"
SunOS ite24 5.8 Generic_117350-12 sun4u sparc SUNW,Ultra-5_10
# telnet 172.25.198.57
Trying 172.25.198.57...
Connected to 172.25.198.57.
Escape character is '^]'.
SunOS 5.8
Connection to 172.25.198.57 closed by foreign host.
# rlogin 172.25.198.57 -l root
Connection to 172.25.198.57 closed.
做了如下检测,但是没看出什么地方有问题:
1. hosts
# rsh 172.25.198.57 -l root "ls /etc/host*"
/etc/hostname.hme0
/etc/hosts
2. /.rhosts
# rsh 172.25.198.57 -l root "cat /.rhosts"
+ +
3.
# rsh 172.25.198.57 -l root "cat /etc/default/login | grep -i console"
# If CONSOLE is set, root can only login on that device.
#CONSOLE=/dev/console
4. IP
# rsh 172.25.198.57 -l root "ifconfig -a"
lo0: flags=1000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4> mtu 8232 index 1
inet 127.0.0.1 netmask ff000000
hme0: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 2
inet 172.25.198.57 netmask ffffffc0 broadcast 172.25.198.63
ether 0:3:ba:14:43:61
5. setenv
# rsh 172.25.198.57 -l root "setenv"
sh: setenv: not found
很怀疑是不是shell除了问题,因为setenv应该是shell内置的命令。但是我对solaris不熟,不知道是怎么回事?请各位高手帮忙看一下。谢谢先