Security Basics
server security Jun 20 2012 05:27PM
Littlefield, Tyler (tyler tysdomain com) (3 replies)
Re: server security Jun 20 2012 11:44PM
Alex Dolan (dolan alex gmail com) (3 replies)
Re: server security Jun 21 2012 05:48PM
Tracy Reed (treed ultraviolet org)
On Wed, Jun 20, 2012 at 04:44:57PM PDT, Alex Dolan spake thusly:
> One tip I have is to set SSH to a port other than 22, I don't need to

I tried this once upon a time and very quickly found that operationally it was
just a real pain in the neck. Most everyone who has more than a few machines or
a few users seems to go through this stage. Everything has to be configured to
use the non-standard port and especially when you have lots of people and lots
of servers involved it adds a whole lot more work and troubleshooting. It just
isn't worth it.

For my external-facing ssh servers I implement several controls to mitigate the
fact that everyone can hit the ssh port:

1. Require key auth. Do not accept passwords. "PasswordAuthentication no" in
sshd_config.

2. Disallow root login with "PermitRootLogin no" in sshd_config.

3. Run fail2ban to cut down on scanner traffic. Since they couldn't possibly
brute force a password since passwords are not accepted anyway this mostly
just cuts down on log traffic.

4. Where applicable, restrict what IPs can connect to ssh using iptables. I
don't do this for my external facing bastion hosts since I never know for
certain from where I may need to connect but I do this for my internal
network bastion hosts which I know I will always be connecting to from
certain IPs.

5. Have written into the security policy (which every employee receives a copy
of and signs a form saying they have received, read, and understood the
policy, this is required by PCI-DSS among other things) that all ssh private
keys will be encrypted with a passphrase and that the passphrase will be
chosen properly per the strong passphrase rules also in the security policy.

I find this to be the far better way to go.

--
Tracy Reed
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (GNU/Linux)

iD8DBQFP415vBhSTPg0d/nQRAh78AJ9JSuviYYXKGT2KWDz0KE+dsWNa5gCgttB7
kwVTEWN6OgPjmxAu2t7WLQo=
=QASL
-----END PGP SIGNATURE-----

[ reply ]
Re: server security Jun 21 2012 04:34PM
Mike Hale (eyeronic design gmail com) (4 replies)
Re: server security Jun 22 2012 11:02AM
Rory Browne (rbmlist gmail com) (3 replies)
Re: server security Jun 22 2012 08:27PM
Tracy Reed (treed ultraviolet org)
RE: server security Jun 22 2012 06:09PM
Ron McKown (RMcKown apptio com) (1 replies)
RE: server security Jun 22 2012 08:09PM
Ward, Jon (Jon_Ward SYNTELINC COM) (1 replies)
RE: server security Jun 22 2012 09:30PM
Dave Kleiman (dave davekleiman com) (2 replies)
RE: server security Jun 26 2012 02:35PM
Tommy Thomas (webmaster ocaladesigns com)
Re: server security Jun 22 2012 09:54PM
Tracy Reed (treed ultraviolet org) (2 replies)
RE: server security Jun 22 2012 10:47PM
Dave Kleiman (dave davekleiman com)
Re: server security Jun 22 2012 10:31PM
Tracy Reed (treed ultraviolet org) (1 replies)
RE: server security Jun 22 2012 10:51PM
Dave Kleiman (dave davekleiman com) (2 replies)
Re: server security Jun 23 2012 12:48PM
Ansgar Wiechers (bugtraq planetcobalt net)
Re: server security Jun 22 2012 11:17PM
Rob (synja synfulvisions com)
Re: server security Jun 22 2012 02:51PM
Littlefield, Tyler (tyler tysdomain com)
Re: server security Jun 21 2012 04:47PM
Killian Faughnan (lists killianfaughnan com)
Re: server security Jun 21 2012 04:44PM
Littlefield, Tyler (tyler tysdomain com)
Re: server security Jun 21 2012 02:44PM
Jerome Athias (athiasjerome gmail com)
Re: server security Jun 21 2012 03:52PM
Rob (synja synfulvisions com)
Re: server security Jun 20 2012 06:58PM
Rowland Onobrauche (rowland onobrauche alphadex co uk)
Re: server security Jun 20 2012 06:13PM
Mike Hale (eyeronic design gmail com) (1 replies)
Re: server security Jun 20 2012 06:40PM
Gregory J Bessette schneider-electric com


 

Privacy Statement
Copyright 2010, SecurityFocus