Skip to content

[Terraform] Prevent user processes from killing on SSH disconnect#362

Open
adarshxs wants to merge 4 commits intohuggingface:mainfrom
adarshxs:main
Open

[Terraform] Prevent user processes from killing on SSH disconnect#362
adarshxs wants to merge 4 commits intohuggingface:mainfrom
adarshxs:main

Conversation

@adarshxs
Copy link
Copy Markdown

tmux got killed, after SSH disconnection. This should fix it for instances created via terraform

Comment thread terraform/nixos-configuration.nix Outdated
Removed unnecessary blank line before SSH configuration.
@drbh
Copy link
Copy Markdown
Collaborator

drbh commented Apr 27, 2026

following up on this PR, is this change still needed?

tmux should survive SSH disconnect by default, and this config doesn’t appear to set KillUserProcesses=true or anything else that would explain tmux being killed.

additionally im not sure if this change would resolve the issue anyway, since its setting linger to be on for the root user, and I believe the default user is nixos? lastly if we do want to enable linger I think we may want to set it in the config like users.users.nixos.linger = true;

@adarshxs let me know what your thoughts are. just trying to close/clean up stale PRs.

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants