Skip to content

sshtunnel: host verification failure #30050

Description

@supersonic-copycat

Package Name

sshtunnel

Maintainer

@nunojpg

OpenWrt Version

25.12.4

OpenWrt Target/Subtarget

mediatek/filogic

Steps to Reproduce

  1. install sshtunnel, config a server
  2. use dropbear as ssh implementation
  3. enable StrictHostKeyChecking
  4. put correct hostkey to /root/.ssh/known_hosts
  5. 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions