I accidentally closed the nano graphical user interface, I didn’t also the way a remote connection, could you tell me how to do?
did you means you would like to exit console mode? you may enter the commands to enable x-server.
you should have function key combination to get back to your graphical desktop. by Ctrl^Alt^F2.
please also check https://www.lifewire.com/ways-to-open-a-terminal-console-window-using-ubuntu-4075024 for reference.