unraid / webgui

Unraid Web UI
158 stars 70 forks source link

Only kill sshd from host #1858

Closed ich777 closed 1 month ago

ich777 commented 1 month ago

This ensures that only the sshd PIDs from the host are terminated, and it also resolves an issue where an sshd service inside a container might automatically restart if it gets killed, which would prevent sshd on the host from starting.

The current implementation kills all sshd daemons regardless of whether they are running in a Docker container or an LXC container.