Console won't accept the same password the default UI does

New issue, I used the password of habopen.

  • you try to login to karaf console from account openhabian ?
  • what is the output of ssh -vvv -p 8101 openhab@<YourHostNameHere> ?
  • did you do any modification to any dot file (.* ) in the home of openhabian account ?
  • did you change the default shell of openhabian account ?
  • you try to login to karaf console from account openhabian ?
    Yes, I use PuTTY to connect to my RPi, then login using openhabian ID

  • what is the output of ssh -vvv -p 8101 openhab@<YourHostNameHere> ?

ssh -vvv -p 8101 openhab@192.168.2.22
OpenSSH_7.9p1 Raspbian-10+deb10u2+rpt1, OpenSSL 1.1.1d  10 Sep 2019
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 19: Applying options for *
debug2: resolve_canonicalize: hostname 192.168.2.22 is address
debug2: ssh_connect_direct
debug1: Connecting to 192.168.2.22 [192.168.2.22] port 8101.
debug1: connect to address 192.168.2.22 port 8101: Connection refused
ssh: connect to host 192.168.2.22 port 8101: Connection refused
  • did you do any modification to any dot file (.* ) in the home of openhabian account ?
    No

  • did you change the default shell of openhabian account ?
    No

What is the output of:

netstat -tulpn | grep java

Here are the results:

 sudo netstat -tulpn | grep java
[sudo] password for openhabian:
tcp6       0      0 127.0.0.1:37065         :::*                    LISTEN      710/java
tcp6       0      0 :::5007                 :::*                    LISTEN      710/java
tcp6       0      0 :::8080                 :::*                    LISTEN      710/java
tcp6       0      0 :::8443                 :::*                    LISTEN      710/java
tcp6       0      0 127.0.0.1:8101          :::*                    LISTEN      710/java
udp6       0      0 :::5353                 :::*                                710/java
udp6       0      0 :::41253                :::*                                710/java
udp6       0      0 :::1900                 :::*                                710/java
udp6       0      0 :::57233                :::*                                710/java
udp6       0      0 :::54694                :::*                                710/java
udp6       0      0 :::43476                :::*                                710/java
udp6       0      0 192.168.2.22:55267      :::*                                710/java

have a look at the only row that contains port 8101:

as you can see it contains 127.0.0.1 in front of the port number.
This means that your karaf console is ‘only’ listening on the local interface not on the ehternet interface.
This means you need to use localhost or 127.0.0.1 instead of your host’s name or ip address as connection parameter.

So

ssh  -p 8101 openhab@localhost

instead of

ssh  -p 8101 openhab@192.168.2.22

karaf console per default only listens on the local interface.
This is why you get connection refused.
In case you want to reach it via it’s hostname you need to change the configuration. But this would only be required in case you directly want to reach it from an other computer without first logging into the OH host.

Apologies for my confusion, but I am using PuTTY to login to the OH host (the RPi on IP 192.168.2.22).

From my PuTTY console, what do I have to enter to get to the karaf console?

Do I enter

ssh  -p 8101 openhab@localhost

Did you try that command?
ssh -p 8101 openhab@localhost

This also works:
openhab-cli console