Oh, I think I found the reason:
I added my public keys to the console as described here:
When I log in via public keys the bundle:restart command is missing. When I log on “tradionally” with username and pw it works…
openhab> la -s | grep console
168 x Active x 80 x 4.0.4 x org.openhab.core.io.console
169 x Active x 80 x 4.0.4 x org.openhab.core.io.console.ka
openhab> la -s | grep shell
23 x Active x 30 x 4.4.3 x org.apache.karaf.shell.commands
24 x Active x 30 x 4.4.3 x org.apache.karaf.shell.core
86 x Active x 30 x 4.4.3 x org.apache.karaf.shell.ssh
259 x Active x 80 x 4.0.4 x org.openhab.binding.shelly