Linux rsh command

Linux 命令大全Linux Command Reference

The Linux rsh command is used for remote login Shell.

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

Syntax

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

Parameter description:

  • -d  Use Socket-level debugging functionality.
  • -l<username>  Specify the username to log in to the remote host.
  • -n  Redirect the entered commands to the special peripheral device /dev/null.

Examples

Enable rsh service

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

# chkconfig rsh on //开启rsh服务

# chkconfig -list //检测开启的服务

Remote command execution

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

Linux 命令大全Linux Command Reference

Other extensions