Skip to content
This repository has been archived by the owner on Sep 18, 2020. It is now read-only.

coreos-init: cease enabling socket-activated sshd #1630

Closed
wants to merge 1 commit into from
Closed

coreos-init: cease enabling socket-activated sshd #1630

wants to merge 1 commit into from

Conversation

vcaputo
Copy link

@vcaputo vcaputo commented Nov 10, 2015

Maybe fixes coreos/bugs#909
Fixes coreos/bugs#966

@marineam
Copy link
Contributor

This is certainly a thing we should do but I'm unsure how to safely migrate. Users who have changed the port or similar by modifying sshd.socket are going to lose that change. If the user has sshd.socket enabled in /etc I'm not sure whether it or sshd.service is more likely to win the conflict resolution. The migration question is the biggest reason we've stuck with this setup so far despite it confusing so many of our users, other distros don't run sshd in this manner so it is rather unexpected.

@vcaputo
Copy link
Author

vcaputo commented Nov 10, 2015

Capturing OOB discussion:

Due to the potential for customized sshd_configs and explicit sshd.socket enables / customizations, blindly switching to this simply enabled sshd.service carries some risk for upgrades.

Instead we'll implement a generator which determines if sshd.service can safely be enabled, otherwise enabling sshd.socket.

Switching to using a generator to either enable sshd or continue
socket-activating if the user has done any local configuration of
the socket unit.

Maybe fixes coreos/bugs#909
Fixes coreos/bugs#966
@vcaputo vcaputo changed the title coreos-init: switch sshd from socket-activated to simply enabled coreos-init: cease enabling sshd.socket Nov 26, 2015
@vcaputo vcaputo changed the title coreos-init: cease enabling sshd.socket coreos-init: cease enabling socket-activated sshd Nov 26, 2015
@vcaputo
Copy link
Author

vcaputo commented Nov 26, 2015

@marineam so this is now simply removing the sshd.socket enable, deferring sshd enablement to coreos/init#188

@vcaputo
Copy link
Author

vcaputo commented Nov 8, 2018

I hope coreos or whatever it's called now under redhat no longer socket-activates sshd.

@vcaputo vcaputo closed this Nov 8, 2018
@bgilbert
Copy link
Contributor

bgilbert commented Nov 8, 2018

Container Linux still socket-activates sshd, and we have no plans to change that: coreos/bugs#966 (comment). Fedora CoreOS will (hopefully) avoid doing so.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

systemd malfunctioning breaks ssh access due to socket activation SSH locks up after few hours
3 participants