Log out from a remote system by using the exit(1) command.
$ exit
This example shows the user smith logging out from the system pluto.
$ exit pluto% logout Connection closed. earth%