Linux rsh command
Linux rsh command remote login of Shell.
rsh (remote shell) to provide the user environment, which is Shell, so that instruction can be executed on the remote host specified.
grammar
rsh [-dn][-l <用户名称>][主机名称或IP地址][执行指令]
Parameter Description:
- -d Use Socket-level debugging functions.
- -l <user name> Specifies the user login remote host name.
- -n number to the command input, code-named / dev / null special peripherals.
Examples
Open rsh service
# chkconfig --list //检测rlogin服务是否开启 # chkconfig rsh on //开启rsh服务 # chkconfig -list //检测开启的服务
Remote Command Execution
# rsh -l hnlinux 192.168.1.88 /bin/ls //远程执行ls命令