The command rlogin logs you into a remote machine
in a manner similar to telnet. If your user ID is the same on
each machine, you only need to declare the machine on which you
want to log in:
% rlogin phy1 bohr logs in remotely to phy1. The login takes a few seconds. % hostname To check if we're there, we ask. phy1 phy1 introduces itself. % Prompt is a shell on remote machine.
Since one % looks like another %, when dealing with remote machines, it is useful to have the hostname of the machine in your prompt (see dotfiles in Appendix 6).
If you are prompted for your password instead of receiving a new
prompt, it indicates that your .rhosts file is not being
properly handled. You can, of course, trust the computer with your
password, but that is somewhat of a nuisance. If your login
name is different on the remote machine, then give the -l
option to the rlogin command which will then accept your login
name on the remote machine and pass it along:
theo% rlogin phy2 -l niels bohr's name is niels on phy2. phy2% hostname Note prompt with hostname.
To terminate your remote login session, issue the exit or logout command on the remote machine. If this does not work, then use the escape sequence ~. to make rlogin break the connection.