sshtunnel: procd doesn’t detect service when SSH control sockets are used by default.
Nobody has claimed this yet.
- Dominant language
- Makefile
- Stars
- 4.6k
- Forks
- 4k
- Avg merge
- 3d 12h
- Merged PRs (30d)
- 134
Description
Package Name
sshtunnel
Maintainer
@nunojpg
OpenWrt Version
25.12.2
OpenWrt Target/Subtarget
mediatek/mt7622
Steps to Reproduce
- Install openssh-client
- Add the following to /etc/ssh/ssh_config :
Host *
ControlMaster auto
ControlPath /tmp/.ssh/cm_%r@%h:%p
ControlPersist yes
This ensures that every SSH connection uses a control socket by default.
- Create and run any ssh tunnel.
Actual Behaviour
The tunnel does start and is usable, but service sshtunnel status reports “Not running,” and service sshtunnel stop doesn’t terminate it. Additionally, ubus call service list '{ "name": "sshtunnel" }' shows no PIDs.
Suggested fix: Explicitly add -o ControlMaster=no and -o ControlPersist=no to the SSH options in the load_server() function within /etc/init.d/sshtunnel
Confirmation Checklist
- The package is maintained in this repository.
- I understand that issues related to the base OpenWrt repository or LuCI repository will be closed.
- I am reporting an issue for OpenWrt, not an unsupported fork.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with /etc/init.d/sshtunnel and inspect the load_server() function. Reproduce the issue using the supplied SSH ControlMaster configuration, then check service sshtunnel status, stop, and ubus service-list behavior. Done means the tunnel remains usable while service status reports its process and stop terminates it.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- shell
- Domain
- operating-systems
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Quiet
- Clarity
- Clearly specified
- Newbie friendliness
- 68/100