To disconnect from a remote console, press Ctrl > D, shell:logout or simply logout at the Karaf prompt.