免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 2875 | 回复: 2

remsh 命令的问题:远程系统为SUSE! [复制链接]

论坛徽章:
0
发表于 2011-10-10 18:57 |显示全部楼层
本地系统为hp,远端系统为 suse;

hp 机器可以rlogin 到suse;

remsh susue 也可以登陆,并且登陆成功?

remsh suse command ,command 就执行不成功,回车后就没响应了。

想问下,大侠,是我命令用错了吗? 该如何处理,或者使用什么命令?

论坛徽章:
0
发表于 2011-10-10 19:31 |显示全部楼层
已解决。是SUSE端的问题,呵呵..

SUSE端,需要配置如下:

suse 下配置RSH
1、安装RSH的服务器
2、修改/etc/hosts.equiv
sles10:/etc/xinetd.d # more /etc/hosts.equiv
#
# hosts.equiv   This file describes the names of the hosts which are
#               to be considered "equivalent", i.e. which are to be
#               trusted enough for allowing rsh(1) commands.
#
# hostname
sles10
sles10:/etc/xinetd.d #
3、修改/etc/xinetd.d/rsh,rlogin,rexec文件中的disable=yes为no
4、rcxinetd restart
5、完成设置。
允许root用户使用rsh:
sles10:/etc/pam.d # more rsh
#%PAM-1.0
auth     required       pam_rhosts_auth.so
#auth     required       pam_nologin.so
account  include        common-account
password include        common-password
session  include        common-session

how to config rsh in suse 9
1、install rsh server
2、chang /etc/xinetd.d/rsh,rlogin,rexec file,followe :
chang disable=yes to disbale = no
3、append rsh,rlogin,rexec to  /etc/securetty
4、append hostname user to $userhome/.rhosts
5、rcxinetd restart
6、config fished.

论坛徽章:
0
发表于 2011-10-11 13:14 |显示全部楼层
{:3_190:}
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP