To disconnect from a non-global zone, use one of the following methods.
To exit the zone non-virtual console:
zonename# exit
To disconnect from a zone virtual console, use the tilde (~) character and a period:
zonename# ~.
Your screen will look similar to this:
[Connection to zone 'my-zone' pts/6 closed]
Note - The default escape sequence for ssh is also ~, which causes the ssh session to exit. If using ssh to remotely login to a server, use ~~. to exit the zone.
See also
For more information about zlogin command options, see the zlogin(1) man page.