Home > Unix > UNIX – Lesson 020 – telnet and rlogin commands

UNIX – Lesson 020 – telnet and rlogin commands


Telnet is a protocol for emulating a remote terminal, which means that it can be used to run commands entered on a keyboard at a remote machine. The tool Telnet is an implementation of the Telnet protocol, which means that it translates the protocol specifications into programming language to create a program that can emulate a terminal.
The telnet command is the remote login

Syntax :
telnet hostname or telnet ip_address

Example :

# telnet itctnss0123
Trying 164.130….
Connected to itctnss0123.
Escape character is ‘^]’.
SunOS 5.8
login: root
Last login: Thu Feb 24 16:13:12 from itctnss0123
Sun Microsystems Inc. SunOS 5.8 Generic Patch February 2004
You have new mail.

telnet > quit                             #To exit


The “rlogin” command is similar to telnet. The rlogin starts a terminal session on a remote host.

Syntax :
rlogin hostname

Example :
$ rlogin itctnss0123
Last login: Mon Oct 8 11:41:38 on pts/1
Sun Microsystems Inc. SunOS 5.5.1 Generic May 1996
You have mail.

# rlogin itctnss0123-l root
If you want to connect on itctnss0123 server as “root” user and not using “xarabas” user you can use the “-l” option

If there is a file called “.rhosts” in the user HOME directory the rlogin command will not prompt you for a password.
In the next lesson we speak about the .rhosts file.

Categories: Unix
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: