Package Name
sshtunnel
Maintainer
@nunojpg
OpenWrt Version
25.12.4
OpenWrt Target/Subtarget
mediatek/filogic
Steps to Reproduce
- install sshtunnel, config a server
- use dropbear as ssh implementation
- enable StrictHostKeyChecking
- put correct hostkey to /root/.ssh/known_hosts
- run
service sshtunnel restart
Actual Behaviour
Connection won't be established with error Host '%server_address%' key unknown
If you take exact command that is run by procd (by print it to log) and run it by hand from root, everything works fine
Seems, like dropbear searches for known_hosts relative to $HOME, but $HOME is / when run as service and /root when run manually.
Confirmation Checklist
Package Name
sshtunnel
Maintainer
@nunojpg
OpenWrt Version
25.12.4
OpenWrt Target/Subtarget
mediatek/filogic
Steps to Reproduce
service sshtunnel restartActual Behaviour
Connection won't be established with error
Host '%server_address%' key unknownIf you take exact command that is run by procd (by print it to log) and run it by hand from root, everything works fine
Seems, like dropbear searches for
known_hostsrelative to$HOME, but$HOMEis/when run as service and/rootwhen run manually.Confirmation Checklist