日期:2014-05-16  浏览次数:21416 次

rsh 为什么不行 :Connection refused
[root@lx95   ~]#   rsh   lx95   echo   test
connect   to   address   192.168.1.95:   Connection   refused
Trying   krb4   rsh...
connect   to   address   192.168.1.95:   Connection   refused
trying   normal   rsh   (/usr/bin/rsh)
test
[root@lx95   ~]#   cat   /etc/hosts
#   Do   not   remove   the   following   line,   or   various   programs
#   that   require   network   functionality   will   fail.
127.0.0.1               localhost.localdomain       localhost
192.168.1.95         lx95.localdomain                 lx95
192.168.1.94         lx94.localdomain                 lx94

[root@lx95   ~]#   cat   /root/.rhosts
192.168.1.95   root

以上是相关信息,求大侠帮忙


------解决方案--------------------
根据日志,test字符串已经打出来了
现在的linux默认使用带加密认证的rsh,不能用时再使用传统rsh。
lz这样用就能跳过去:
/usr/bin/rsh lx95 echo test