OpenWindows Advanced User's Guide

9.2.4 Aborting an rlogin Connection

Normally you terminate an rlogin connection by typing logout at the end of a work session. If for some reason you can't terminate a session in this manner, you can abort the connection by typing a tilde character followed by a period (~.) at the beginning of a line. The login connection to the remote machine is aborted and you are placed back at your original machine.

If you log in to a series of machines, gaining access to each machine through another machine, and you use ~. to abort the connection to any of the machines in the series, you are returned to your original machine:

$ rlogin dakota
Password:
Last login: Fri Jan 10 09:14:43 from blue
Sun Microsystems, Inc.    SunOS 5.1      October 1992
(The following command done on dakota.)
$ ~.  (You may not see the ~ on the screen.)
Connection closed.
$

If you want to back up to an intermediate rlogin connection, use two tildes followed by a period (~~.) as follows:

$ rlogin lonesome
Password:
Last login: Tue Jan 7 08:12:49 from blue
Sun Microsystems, Inc.    SunOS 5.1      October 1992
(The following command done on lonesome.)
$ rlogin dakota
Password:
Last login: Tue Jan 7 10:17:40 from lonesome
Sun Microsystems, Inc.    SunOS 5.1      October 1992
(The following command done on dakota.)
$ ~~.  (You may not see the ~~ on the screen.)
Connection closed.
$