Skip to content

Avoid duplicating PermitUserEnvironment#1954

Merged
bastelfreak merged 1 commit intovoxpupuli:masterfrom
kajinamit:issue/1953
Jan 22, 2026
Merged

Avoid duplicating PermitUserEnvironment#1954
bastelfreak merged 1 commit intovoxpupuli:masterfrom
kajinamit:issue/1953

Conversation

@kajinamit
Copy link
Copy Markdown
Contributor

Do not add a new line if the option is already defined. This avoids adding dupulicated lines and also make sure that the existing explicit setting to disable PermitUserEnvironment is purged.

Closes #1953

Comment thread lib/beaker/host/unix/exec.rb
Comment thread lib/beaker/host/unix/exec.rb Outdated
@kajinamit kajinamit force-pushed the issue/1953 branch 4 times, most recently from 92497dc to 6d3a345 Compare January 15, 2026 15:39
Do not add a new line if the option is already defined. This avoids
adding dupulicated lines and also make sure that the existing explicit
setting to disable PermitUserEnvironment is purged.

Closes voxpupuli#1953
@bastelfreak bastelfreak merged commit 89ab2f5 into voxpupuli:master Jan 22, 2026
6 checks passed
@kajinamit kajinamit deleted the issue/1953 branch January 22, 2026 15:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Duplicate PermitUserEnvironment in /etc/ssh/sshd_config after multiple run

3 participants