Linux rsh Command
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:
- -d Use Socket-level debugging features.
- -l
Specify the username to log into the remote host. - -n Redirect the input commands to the special device /dev/null.
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