Posted on 11-01-2012 11:00 AM
Anyone ever harden their Macs with a policy that edits the machine sshd_config file to be more hardened?
Forcing Protocol 2, no root logins, etc..
Posted on 11-02-2012 05:36 AM
Dear dmarcantonio:
I did a little work with it a while ago after some students were logging in via ssh with their iPods and sending commands to the computer to say profane things. I just did some basic stuff, but below is some of the settings I put on the sshd_config file. I never actually ended up using it with Casper, but it could easily be captured using Casper Composer or applying it some other way. Anyway, maybe it will at least spark and idea or two:
Requirements
Conceptual Overview
Allow Only Certain Users to Login Via ssh
Note: DenyUsers can be used instead of AllowUsers. The syntax will be the same
Create Banner Message to Deter Users from Malicious Acts
Note: This will help make the banner message more visible to the user
/etc/issue example 1
This computer can and will be electronically monitored and/or electronically recorded. If you are seeing this message, you are attempting to access an area that may have severe consequences if you are not an authorized user.
Enable the Banner so People will See it when Trying to Login
Note: This will import the /etc/issue file created in the previous step.
Note: To change the message, always edit /etc/issue. The
changes will take effect when the file is saved.
Disable SSH-1 (most likely it is already off by default)
Disable Access to Accounts without Passwords