Linux telnet Command
The Linux telnet command is used for remote login.
Executing the telnet command initiates terminal session operations and logs into a remote host.
Syntax
telnet [-8acdEfFKLrx][-b<host alias>][-e<escape character>][-k<domain>][-l<username>][-n<log file>][-S<service type>][-X<authentication type>][hostname or IP address<port>]
Parameter Description:
-8 Allows the use of 8-bit character data, including input and output.
-a Attempts to automatically log in to the remote system.
-b<host alias> Uses an alias to specify the remote host name.
-c Does not read the .telnetrc file from the user's private directory.
-d Enables debug mode.
-e<escape character> Sets the escape character.
-E Filters out the escape character.
-f This parameter has the same effect as specifying the "-F" parameter.
-F When using Kerberos V5 authentication, this parameter allows uploading the local host's authentication data to the remote host.
-k<domain> When using Kerberos authentication, this parameter makes the remote host use the specified realm name instead of the host's domain name.
-K Does not automatically log in to the remote host.
-l<username> Specifies the username to log in to the remote host.
-L Allows output of 8-bit character data.
-n<log file> Specifies a file to log relevant information.
-r Uses a user interface similar to the rlogin command.
-S<service type> Sets the IP TOS information required for telnet connection.
-x Assumes the host supports data encryption and uses it.
-X<authentication type> Disables the specified authentication type.
Example
Logging into a remote host
# telnet 192.168.0.5
// Logs into the remote host with IP 192.168.0.5