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

Linux rlogin command

Linux rlogin command

Linux Command Reference Linux Command Reference

The Linux rlogin command is used to log in remotely.

Running the rlogin command starts a terminal session and logs in to the remote host.

Syntax

rlogin [-8EL][-e <脱离字符>][-l <用户名称>][主机名称或IP地址]

Required Parameters:

Select parameters:

  • -e Set the logout character
  • -l Specify the user to log in as
  • -t Set the terminal type
  • Example

    Check whether the rlogin service is enabled

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

    Enable the rlogin service

    # chkconfig rlogin on //开启rlogin服务
    
    

    Log in to the remote host

    
    
    # rlogin 192.168.1.88
    
    Password:
    
    Password:
    
    Login incorrect
    
    Login:root
    
    Passwd:
    
    Login incorrect
    
    Login:kk
    
    Passwd:
    
    

    Log in to the remote host with a specified username

    
    
    # rlogin 192.168.1.88 -l hnlinux
    
    
    
    Passord:
    
    Last login:Mon May 28 15:30:25 from 192.168.1.88
    
    
    
    # 
    
    

    Linux Command Reference Linux Command Reference