Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update sshd-pfs_config #57

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Update sshd-pfs_config #57

wants to merge 2 commits into from

Conversation

rhyven
Copy link

@rhyven rhyven commented Mar 9, 2015

Added more detail for a strong sshd_config file

Added more detail for a strong sshd_config file
@GigabyteProductions
Copy link

This definitely looks like an improvement, but what is the shortened LoginGraceTime for?

StrictModes yes

# Prevent privilege escalation - keeps any corruption within an unprivileged processes
UsePrivilegeSeparation yes
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A better value for this setting is sandbox. Here's the description from the manpage:

If UsePrivilegeSeparation is set to “sandbox” then the pre-authentication unprivileged process is subject to additional restrictions.

(via https://wiki.mozilla.org/Security/Guidelines/OpenSSH)

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@fmarier - Thanks François, I didn't know about the sandbox setting!

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@GigabyteProductions - Just to reduce the amount of time the system is listening to an unauthenticated user; I was coming from a viewpoint of "minimum possible access", and didn't see the point in giving people a whole 120 seconds of airtime. There may be no security value in it, but there might be a new 0-day at some point or something.

Changed PrivilegeSeparation to sandbox (thanks, @fmarier!)
Added VERBOSE log level
Added 4096-bit RSA key (usually 1024 or 2048 bit created on initial system install)
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