So far I never generated any key for my openHAB setup. This key must thus have been generated by the first-time installer (the openhabian installer?).
The only nonblank or non-comment line in /var/lib/openhab2/etc/keys.properties
is:
$ cat /var/lib/openhab2/etc/keys.properties | grep -vE '^$|^#'
_g_\:admingroup = group,admin,manager,viewer,systembundles,ssh
Does this mean I have to generate an SSH key for the openhabian
user and add the public key to /var/lib/openhab2/etc/keys.properties
? The approch depicted in the following post does not work, I still have to provide the password for openhab
:
Here’s what I get:
[16:49:15] openhabian@openhab:~$ ssh -p 8101 openhab@localhost
Password authentication
Password:
[16:49:23] openhabian@openhab:~$ openhab-cli console
Logging in as openhab
Password:
[16:52:00] openhabian@openhab:~$ openhab-cli console -k ~/.ssh/id_rsa
Logging in as openhab
Password:
Remark: Karaf reports it’s on version 4.2.7.