$rsh remote-sytem-name Linux-command
例,
$rsh 192.168.51.230 ls /root/ > /home/abc(本系统)
$rsh violet ls /home/robert'>'/home/abc(远程系统)
管道线被远程系统或本系统解释。
$rsh 192.168.51.230 ls /root/ '|' grep 11 (远程系统)
因rsh服务是一个不安全的传输。一般不建议使用rsh传输。
具体的开启方法:
/etc/xinetd.d/rlogin文件中disable =yes的改为
disable =no
保存退出。
还有/tec/xinetd.d/rsh文件中disable =yes的改为
disable =no
保存退出。
然会重启一下rsh服务
service xinetd restart即可
把/etc/securetty
文件加上
rsh
rlogin
三行。
192.168.111.22
# 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
}
tcp 0 0 0.0.0.0:514 0.0.0.0:* LISTEN