Opened 7 years ago

Last modified 4 weeks 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: #17127 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 (12)

comment:1 by kallisti5, 6 years ago

Milestone: UnscheduledR1/beta1
Owner: changed from nobody to kallisti5
Priority: normalhigh
Status: newassigned

The openssh haikuports package needs "daemon users" sshd added. We also need to make sure sshd isn't enabled by default.

comment:2 by kallisti5, 6 years ago

Blocked By: 14382 added

comment:3 by waddlesplash, 6 years ago

Blocked By: 14382 removed
Resolution: fixed
Status: assignedclosed

Remaining issues tracked in #14382.

comment:4 by diver, 3 years ago

Component: - GeneralServers/launch_daemon
Keywords: ssh sshd launch_daemon removed

Seems like this issue is still valid.

comment:5 by diver, 3 years ago

Resolution: fixed
Status: closedreopened

comment:7 by Coldfirex, 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 bbjimmy, 13 months ago

it now seems to work, although the Netwprl Preferences app does not update treeview view all the time.

comment:9 by kallisti5, 13 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 kallisti5, 10 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 kallisti5, 10 months ago

See #18823 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.

Last edited 10 months ago by kallisti5 (previous) (diff)

comment:12 by waddlesplash, 4 weeks ago

Blocked By: 17127 added
Note: See TracTickets for help on using tickets.