← 返回命令列表

Linux command

rlogin 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

Log in

rlogin [remote_host]

Log in with a specific username

rlogin -l [username] [remote_host]

Use a custom escape character

rlogin -e [^] [remote_host]

Force IPv4 connection

rlogin -4 [remote_host]

Allow 8-bit data

rlogin -8 [remote_host]

说明

rlogin starts a terminal session on a remote host using Berkeley's rhosts authorization mechanism. It reads ~/.rhosts and /etc/hosts.equiv to decide whether to permit passwordless login from trusted accounts. The escape character (default ~), when typed as the first character on a line, enables special actions: ~. disconnects, ~^Z suspends the session, and ~~ sends a literal tilde. The remote terminal type and window size are propagated from the local environment.

参数

-4
Use IPv4 addresses only.
-6
Use IPv6 addresses only.
-8
Allow an eight-bit input data path at all times; otherwise parity bits are stripped.
-D
Set the TCP_NODELAY socket option to improve interactive response.
-d
Turn on socket debugging (SO_DEBUG) on the TCP sockets used for communication.
-E
Stop any character from being recognized as an escape character.
-e _char_
Set the escape character (default: ~). A literal character, or \\nnn for octal.
-i _localname_
Specify a different local name to be used for authentication.
-l _username_
Specify a different username for the remote login (default: current user).

FAQ

What is the rlogin command used for?

rlogin starts a terminal session on a remote host using Berkeley's rhosts authorization mechanism. It reads ~/.rhosts and /etc/hosts.equiv to decide whether to permit passwordless login from trusted accounts. The escape character (default ~), when typed as the first character on a line, enables special actions: ~. disconnects, ~^Z suspends the session, and ~~ sends a literal tilde. The remote terminal type and window size are propagated from the local environment.

How do I run a basic rlogin example?

Run `rlogin [remote_host]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does -4 do in rlogin?

Use IPv4 addresses only.