欢迎光临
我们一直在努力

电脑开启热点无法使用,胰岛素开启后使用时间

rsh命令将在远程Linux系统上执行一个命令并把结果显示到您的系统中。当然,您的系统名和注册名必须在远程系统的.rhosts文件中,命令rsh有两个一般的参数,一个系统名和一个Linux命令。语法如下所示:
$rsh remote-sytem-name Linux-command ssh也是可以这样使用的.

例, $rsh 192.168.51.230 ?ls /root/ rsh-server-0.17-38.el5.i386.rpm
? ? 列出远程系统上的文件,并把它们送到本系统中的标准输出。
$rsh 192.168.51.230 ?ls /root/ > /便宜美国vpshome/abc(本系统)
? 引用一个重定向操作符。它变成Linux命令的一部分,包括命令的参数,文件名myfile。命令ls产生一列文件名并把它们重定向到远程系统中的一个文件 myfile中。
$rsh violet ls /home/robert’>’/home/abc(远程系统)

管道线被远程系统或本系统解释。 ? $rsh 192.168.51.230 ?ls /root/ | grep 11 (本系统)
$rsh 192.168.51.230 ?ls /root/ ‘|’? grep 11 (远程系统)
因rsh服务是一个不安全的传输。一般不建议使用rsh传输。
linux 先安装rsh-server,然后设置开启.
具体的开启方法:
/etc/xinetd.d/rlogin文件中disable =yes的改为
disable =no
保存退出。
还有/tec/xinetd.d/rsh文件中disable =yes的改为
disable =no
保存退出。

然会重启一下rsh服务
service xinetd restart即可 ? 在/root/.rhosts中添加允许访问的ip或主机名 [root@VirtualX02 ~]# vi .rhosts 192.168.111.22 ? chmod 600 .rhosts 权限设置为600,否则提示要输入密码. ? [root@VirtualX02 ~]# cat /etc/xinetd.d/rsh
# default: on?
# description: The rshd server is the server for the rcmd(3) routine and, \
#?????? consequently, for the rsh(1) program.? The server provides \
#?????? remote execution facilities with authentication based on \
#?????? privileged port numbers from trusted hosts.
service shell
{
??????? socket_type???????????? = stream
??????? wait??????????????????? = no
??????? user??????????????????? = root
??????? log_on_success????????? += USERID
??????? log_on_failure????????? += USERID
??????? server????????????????? = /usr/sbin/in.rshd
??????? disable???????????????? = no
} ? 检测是否启动: [root@VirtualX02 ~]# netstat -an | grep 514
tcp??????? 0????? 0 0.0.0.0:514???????????????? 0.0.0.0:*?????????????????? LISTEN

转载于:https://blog.51cto.com/837244/1079830

45772375

赞(0)
【声明】:本博客不参与任何交易,也非中介,仅记录个人感兴趣的主机测评结果和优惠活动,内容均不作直接、间接、法定、约定的保证。访问本博客请务必遵守有关互联网的相关法律、规定与规则。一旦您访问本博客,即表示您已经知晓并接受了此声明通告。