Jump to content

Command Crate ¿about?

Stop SSH service in a container (podman)

podman exec "$client_name" sh -c "pkill sshd"

Kills the sshd process inside a running podman container to stop the SSH service.

containers [kb:197]