Operating System - HP-UX
1822712 Members
3563 Online
109644 Solutions
New Discussion юеВ

What is different between telnet and rlogin?

 
SOLVED
Go to solution
leereg_4
Advisor

What is different between telnet and rlogin?

As title.
Always UNIX
4 REPLIES 4
mooi-kuan
Advisor

Re: What is different between telnet and rlogin?

Here is what I know but other may answer more than that.

rlogin command supplies the remote host with your login id and your current teminal value(TERM environment variable). If you properly setup the remote host's .rhosts file in the user home directory, you donot need supplies password.

Telnet command supplies doesn't supply login id and password to the romote host, hence you need to provide login id and password every time. Telnet allows you to login to platform other Unix but not rlogin.
mk
Michael Tully
Honored Contributor
Solution

Re: What is different between telnet and rlogin?

Hi,

'rlogin' means "remote login"
An example of this can be done as
rlogin hostone

If the password prompt appears it means
that there is no '.rhosts' file for
that user. The 'rhosts' file must be owned
by the same use that is logging in. The use
'.rhosts' and hosts.equiv is not recommended
other than for convenience and to use 'remsh'
commands. The reason is it makes systems
insecure.
You can also use this scenario
rlogin hostone -l usertwo

The telnet command is used to login
to another unix server, router, print hub
and various other equipment.
A password is required for telnet.

HTH
Michael
Anyone for a Mutiny ?
Patrick Wallek
Honored Contributor

Re: What is different between telnet and rlogin?

Some information from the man pages for telnet and rlogin. Here is the link to the section 1 man pages where I got the information: http://docs.hp.com/hpux/onlinedocs/B2355-90128/B2355-90128.html

*******************
rlogin

The rlogin command connects your terminal on the local host to the remote host (rhost). rlogin acts as a virtual terminal to the remote system. The host name rhost can be either the official name or an alias as listed in the file /etc/hosts (see hosts(4) ).

In a manner similar to the remsh command (see remsh(1) ), rlogin allows a user to log in on an equivalent remote host, rhost, bypassing the normal login/password sequence. For more information about equivalent hosts and how to specify them in the files /etc/hosts.equiv and .rhosts, see hosts.equiv(4) . The searching of the files /etc/hosts.equiv and .rhosts occurs on the remote host, and the .rhosts file must be owned by the remote user account.

If the originating user account is not equivalent to the remote user account, the originating user is prompted for the password of the remote account. If this fails, a login name and password are prompted for, as when login is used.

*****************

telnet

telnet is used to communicate with another host using the TELNET protocol. If telnet is invoked without arguments, it enters command mode, indicated by its prompt (telnet>). In this mode, it accepts and executes the commands listed below. If telnet is invoked with arguments, it performs an open command (see below) with those arguments.

************************
leereg_4
Advisor

Re: What is different between telnet and rlogin?

Thanks a lot for you great help!


All the best!
Always UNIX