Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

Linux rsh Command

Linux rsh Command

Linux Command Reference Linux Command Reference

The Linux rsh command is used to log into a remote Shell.

rsh (remote shell) provides a user environment, that is, a Shell, so that commands can be executed on a specified remote host.

Syntax

rsh [-dn][-l <用户名称>][主机名称或IP地址][执行指令]

Parameter Description:

Example

Enable the rsh service

# chkconfig --list //检测rlogin服务是否开启



# chkconfig rsh on //Enable rsh service



# chkconfig -list //Check enabled services

Remote command execution

# rsh -l hnlinux 192.168.1.88 /bin/ls //远程执行ls命令

Linux Command Reference Linux Command Reference