Opened 7 years ago
Last modified 9 months ago
#14086 reopened bug
sshd does not start/stop when enabled/disabled
Reported by: | bbjimmy | Owned by: | kallisti5 |
---|---|---|---|
Priority: | high | Milestone: | R1/beta1 |
Component: | Servers/launch_daemon | Version: | R1/Development |
Keywords: | Cc: | ||
Blocked By: | Blocking: | ||
Platform: | All |
Description
hrev 51880 sshd does not start/stop when enabled/disabled /boot/system/data/deskbar/menu/Preferences/Network
It seems like the network services file, /boot/system/settings/network/services is only read on boot.
if one kills a running daemon, /bin/sshd it is not re-launched.
My guess is that this is due to recent changes in the launch daemon.
Change History (11)
comment:1 by , 6 years ago
Milestone: | Unscheduled → R1/beta1 |
---|---|
Owner: | changed from | to
Priority: | normal → high |
Status: | new → assigned |
comment:2 by , 6 years ago
Blocked By: | 14382 added |
---|
comment:3 by , 6 years ago
Blocked By: | 14382 removed |
---|---|
Resolution: | → fixed |
Status: | assigned → closed |
Remaining issues tracked in #14382.
comment:4 by , 3 years ago
Component: | - General → Servers/launch_daemon |
---|---|
Keywords: | ssh sshd launch_daemon removed |
Seems like this issue is still valid.
comment:5 by , 3 years ago
Resolution: | fixed |
---|---|
Status: | closed → reopened |
comment:7 by , 3 years ago
Milestone needs to be updated. Also I would change the priority to Normal from high. Yes, SSH is enabled by default but it requires further steps for it to be usable.
comment:8 by , 12 months ago
it now seems to work, although the Netwprl Preferences app does not update treeview view all the time.
comment:9 by , 12 months ago
I think the cause of this one was https://dev.haiku-os.org/ticket/14382. We might be able to close this one now?
comment:10 by , 9 months ago
The SSHD network_settings add-on seems incomplete. Looking at src/add-ons/network_settings/sshd, it "Creates a sshd user if it doesn't exist" and uses a BNetworkServiceSettings to launch it.
I feel like this should be migrated over to a launch_roster service? The net-misc/openssh package should also likely contain a launch config along the lines of:
target desktop { service x-vnd.sshd { launch /bin/sshd -D on network_available } }
which is disabled at installation of the openssh package.
Then, the ssh network service preflet addon would look for the presence of "x-vnd.sshd" and enable / disable it to control the service (and optionally update the system's sshd.config)
comment:11 by , 9 months ago
See #18822 for discussion. Essentially today sshd is launched via our net_server in an inetd-like fashion.
Consensus seems to be there's a lot of positive "reduced memory / cpu footprint" considerations continuing to do inetd-like launching of sshd.
The openssh haikuports package needs "daemon users" sshd added. We also need to make sure sshd isn't enabled by default.