Debian/Ubuntu SSH hardening: sftp path, ssh/sshd units, UFW port#16
Open
artschekoff wants to merge 2 commits intocaptainzero93:mainfrom
Open
Debian/Ubuntu SSH hardening: sftp path, ssh/sshd units, UFW port#16artschekoff wants to merge 2 commits intocaptainzero93:mainfrom
artschekoff wants to merge 2 commits intocaptainzero93:mainfrom
Conversation
- Resolve sftp-server dynamically with fallbacks instead of a fixed path - Restart ssh or sshd after config; UFW checks both units for active SSH Made-with: Cursor
Resolve fortress_improved.sh: combine Debian/Ubuntu sftp-server discovery with upstream v5.1 SSH template, AllowUsers append, PrintLastLog/TCPKeepAlive/ Compression, sshd -t validation, and UFW rate limit on SSH_PORT with ssh/sshd unit detection. Made-with: Cursor
Author
|
related to issue #14 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
sftp-serverpath dynamically (default Debian/Ubuntu location + fallbacks) and wireSubsystem sftpto that path; restartsshorsshdafter changes.sshorsshd(Ubuntu vs others) and apply rate limiting on the configuredSSH_PORT.Merged with current upstream
fortress_improved.sh(v5.1 template,SSH_ALLOWED_USERS, etc.) so behavior stays compatible with the latest script.Motivation
Hardcoded
/usr/lib/openssh/sftp-server,sshd-only service checks, andufw limit sshmiss common Debian/Ubuntu setups and non-default SSH ports.