think i’am trying the same right know.
Doing everything via SSH into Raspberry via Public-Key (OH2 running on that raspberry :D)
Normally running OH2 on Raspberry via service (systemctl) automatically at system startup. So when i ssh into the raspberry i don’t have any karaf console (do have if i ssh into raspberry and then start OH2 manuell via the start script. But then, if i’am killing the ssh session into raspberry, also OH2 is killed.)
If i ssh into raspberry and then using “ssh karaf@localhost -p 8101” it works.
But is there also a way directly shh into karaf from remote, without first ssh into raspberry? If i’am trying to “ssh karaf@ipofraspberry -p 8101” i get “Connection refused”. Think that because of the public-key i’am using?
On the mac i have some alias to ssh into raspberry. Works perfectly.
alias rpi2="ssh rpi2"
alias olog="ssh rpi2 ‘tail -f /opt/openhab/userdata/logs/openhab.log’"
alias elog=“ssh rpi2 ‘tail -f /opt/openhab/userdata/logs/events.log’”
Would be nice to have a alias also for karat-console. Like (but without any password-promt).
alias karaf=“ssh rpi2 ‘ssh karaf@localhost -p 8101’”
But that didn’t worked out:
Pseudo-terminal will not be allocated because stdin is not a terminal.
Host key verification failed.