rsh (Remote Shell)

rsh允许我们在一台远程电脑上面, 运行一个我们指定的shell命令.

windows, linux/unix都有相应的版本

下面是他的维基百科, 从中我们可以发现, 他是基于tcp协议

http://en.wikipedia.org/wiki/Remote_Shell

下面的链接是在unix上面的rsh的一个帮助文档

http://unixhelp.ed.ac.uk/CGI/man-cgi?rsh

不同系统的版本, 使用参数可能会有所不同, 比如我在CentOS查看了一下rsh的help,

参与和语法便和上面的unix版本略有不同, CentOS的版本如下:

sapsle00:sldadm 17> rsh
usage: rsh host [ -PN / -PO ] [ -l login ] [ -n ] [ -x ] [ -f / -F] command
OR rsh [ -PN / -PO ] [ -l login ] [-n ] [ -x ] [ -f / -F ] host command
sapsle00:sldadm 18>

IBM AIX上面, 也可以使用remsh这个命令, 详细参考下面链接:

Commands Reference, Volume 4, n - r  =>  rsh or remsh Command

http://pic.dhe.ibm.com/infocenter/aix/v6r1/index.jsp?topic=%2Fcom.ibm.aix.cmds%2Fdoc%2Faixcmds4%2Frsh.htm

在ibm的这篇文档中, 也简单介绍了rsh的认证方式, 包括下面这两种:
Using Standard Authentication
For Kerberos 5 Authentication

要想rsh成功执行, 对方电脑需要配置rsh server.

如何配置, 和确认是否已经配置成功, 可以参考下面两个链接:

这两个链接中, 也涉及如何认证许可一个链接的配置.

Configure rsh for CentOS

Installing and Configuring RSH on Linux

 ==================

sap什么时候会调用一个rsh ?

我现在的理解是, 如果我们想远程监控一个系统, 如果那个系统上面有sap的application server.

那么sap会直接和这个application server通信.

但是如果对方, 没有这个server,

sap可能就会使用rsh从远程收集数据.

因为rsh会存在一些安全上的隐患, 所以sap会推荐在想要监控的系统上(比如DB server)安装一个standalone的gataway server等等.

我记得这些有在一个note上面说明, 但是忘记哪个note

现在只有下面这个链接:

Background Processing => Prerequisites for Running External Programs

我遇到的情况是在一个rfc中使用了这个rsh,

按照上面的链接, background job也可能会用到这个rsh.

其他case不明.

猜你喜欢

转载自wjason.iteye.com/blog/1872723