Cannot access Karaf console?

I am on Ubuntu Linux 22.04.3 and am running OH 4.0.4 and Openhabian.

I just noticed, that I cannot access the Karaf console (anymore). These are my error messages;

martin@openhabian:~$ ssh openhab:localhost -p 8081
ssh: Could not resolve hostname openhab:localhost: Name or service not known
martin@openhabian:~$ ssh openhab:127.0.0.1 -p 8081
ssh: Could not resolve hostname openhab:127.0.0.1: Name or service not known

I find this strange, as I have occacionally used the console in the past - but cannot remember if I have migrated my OH-installation to a new environment in the meantime (I know I have - but dont remember if I have used the console since).

Anyone with a good idea on how to resolve this ?

What about using

openhab-cli console

Btw, it is well documented that openHABian is not supported to run on other distributions than debian based….
It might work, but it also might throw errors…

Thanks ! - works !
I know about the support issue on other distributions than debian - but this is the first time I have had any issue with any of my OH-installations on Ubuntu.

1 Like

Have you tried

ssh openhab@localhost -p 8101
1 Like

also doesnt work

Mmh? Sorry, but in my Setup this works perfect

hab3@oh3ssd:~ $ ssh openhab@localhost -p 8101
Password authentication
Password:

                           _   _     _     ____
   ___   ___   ___   ___  | | | |   / \   | __ )
  / _ \ / _ \ / _ \ / _ \ | |_| |  / _ \  |  _ \
 | (_) | (_) |  __/| | | ||  _  | / ___ \ | |_) )
  \___/|  __/ \___/|_| |_||_| |_|/_/   \_\|____/
       |_|       4.1.0.M3 - Milestone Build

Use '<tab>' for a list of available commands
and '[cmd] --help' for help on a specific command.
To exit, use '<ctrl-d>' or 'logout'.

openhab>

when working withe the “openhab-cli console” command it works too, but I get this (boring) warning message:

hab3@oh3ssd:~ $ openhab-cli console

Logging in as openhab
Password:
/var/lib/openhab/tmp/jansi-2.4.0-f01f64d7c3b5f290-libjansi.so.lck (Keine Berechtigung)

                           _   _     _     ____
   ___   ___   ___   ___  | | | |   / \   | __ )
  / _ \ / _ \ / _ \ / _ \ | |_| |  / _ \  |  _ \
 | (_) | (_) |  __/| | | ||  _  | / ___ \ | |_) )
  \___/|  __/ \___/|_| |_||_| |_|/_/   \_\|____/
       |_|       4.1.0.M3 - Milestone Build

Use '<tab>' for a list of available commands
and '[cmd] --help' for help on a specific command.
To exit, use '<ctrl-d>' or 'logout'.

openhab>

Did you use the port-adress 8081 or 8101 ?

Edit: … and no colon between “openhab” and “localhost” but at-sign “@”

Now that is what I call help :wink: - I ran through my original question and could indeed see that i had used “:” instead of @ between the openhab and localhost…
Now it works here as well. Thanks for help to clairify this !

martin@openhabian:~$ ssh openhab@localhost -p 8101
The authenticity of host '[localhost]:8101 ([127.0.0.1]:8101)' can't be established.
RSA key fingerprint is SHA256:yKmVEuEaaOlL1tlkj8gcahgLBDdTqJFMfZlsyrsW8bM.
This key is not known by any other names
Are you sure you want to continue connecting (yes/no/[fingerprint])? yes
Warning: Permanently added '[localhost]:8101' (RSA) to the list of known hosts.
Password authentication
(openhab@localhost) Password:

                           _   _     _     ____
   ___   ___   ___   ___  | | | |   / \   | __ )
  / _ \ / _ \ / _ \ / _ \ | |_| |  / _ \  |  _ \
 | (_) | (_) |  __/| | | ||  _  | / ___ \ | |_) )
  \___/|  __/ \___/|_| |_||_| |_|/_/   \_\|____/
       |_|       4.0.4 - Release Build

Use '<tab>' for a list of available commands
and '[cmd] --help' for help on a specific command.
To exit, use '<ctrl-d>' or 'logout'.

openhab>