If you have a shell, you can
sudo /usr/share/openhab2/runtime/karaf/bin/client
to get the karaf console.
Alternativly do
ssh openhab@localhost -p 8101
with pw: habopen
Important: When logging in the first time, give it 2 or 3 minutes, see here