<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;"><DIV><FONT face="verdana, helvetica, sans-serif">Hi all,</FONT></DIV>
<DIV><FONT face="verdana, helvetica, sans-serif">&nbsp;</FONT></DIV>
<DIV><FONT face="verdana, helvetica, sans-serif">I would like to share very good article on Best Practices - SSH Configuration for .. Hope you all find it useful.</FONT></DIV>
<DIV><FONT face="verdana, helvetica, sans-serif">&nbsp;</FONT></DIV>
<DIV><FONT face="verdana, helvetica, sans-serif">SSH&nbsp; has been around since around 1995.&nbsp; In some ways it has become the backbone of remote network management and configuration in our enterprises.&nbsp; Since everything from our Cisco routers to our Firewalls&nbsp; and servers support this protocol, what do we need to know as an IT auditor to make sure it’s configured correctly?&nbsp; Here are the top five items to check.. Credits to David</FONT></DIV>
<DIV><FONT face="verdana, helvetica, sans-serif">&nbsp;</FONT></DIV>
<DIV><FONT face="verdana, helvetica, sans-serif"><STRONG>1: Use Version 2<BR></STRONG>SSH version 1 was shown to have significant flaws as early as 2001.&nbsp; While some of these flaws were coding errors, others are flaws that can allow for replay and other forms of attacks against the protocol itself.&nbsp; From time to time you may find that the administrators have configured the service as follows:</FONT></DIV>
<DIV><FONT face="verdana, helvetica, sans-serif">Protocol 2,1</FONT></DIV>
<DIV><FONT face="verdana, helvetica, sans-serif">What this means is that SSH version 2 is preferred, but the service can fall back to support version 1.&nbsp; There is no reason any public facing system should have version 1 enabled in any form!</FONT></DIV>
<DIV><FONT face="verdana, helvetica, sans-serif">&nbsp;</FONT></DIV>
<DIV><FONT face="verdana, helvetica, sans-serif"><STRONG>2: Verify IP Address Binding</STRONG><BR>The lazy way (default) of configuring SSH is to allow the service to run on all bound IP addresses.&nbsp; On internal networks this may not be such a big deal, but for a public facing system this is a bad idea!&nbsp; Your SSH service should be bound to a specific IP address, preferably one accessible only from the internal network.&nbsp; If an administrator needs to get to something remotely, require that they log into the VPN first and then connect to the internal facing SSH service.</FONT></DIV>
<DIV><FONT face="verdana, helvetica, sans-serif">&nbsp;</FONT></DIV>
<DIV><FONT face="verdana, helvetica, sans-serif"><STRONG>3: Use TCP Wrappers</STRONG><BR>The SSH daemon is perfectly capable of running by itself.&nbsp; The trouble with this is that it doesn’t enforce any connection restrictions beyond the authentication system.&nbsp; Requiring that TCP Wrappers be used to control access to SSH allows us to restrict connections to specific networks or hosts regardless of authentication credentials.&nbsp; This creates an additional level of defense and also protects us should our service be inadvertently configured to run on all interfaces.</FONT></DIV>
<DIV><FONT face="verdana, helvetica, sans-serif">&nbsp;</FONT></DIV>
<DIV><FONT face="verdana, helvetica, sans-serif"><STRONG>4: Require Key Based Authentication</STRONG><BR>SSH can be configured to use the local username/password database to authenticate users.&nbsp; In fact, this is the default.&nbsp; The problem is that this means that someone could potentially attempt to brute force entry into our system by repeatedly attempting passwords against a common user (like root).&nbsp; If we require users to use key based authentication we leverage strong cryptographic mechanisms for authentication (asymmetric keys) and make it infeasible for a brute force attack.&nbsp; Don’t just make sure that key authentication is turned on, make sure password based authentication is turned off!</FONT></DIV>
<DIV><FONT face="verdana, helvetica, sans-serif">&nbsp;</FONT></DIV>
<DIV><FONT face="verdana, helvetica, sans-serif"><STRONG>5: Don’t Permit Root Logons</STRONG><BR>Why do administrators like to log in a root?&nbsp; Let’s face facts:&nbsp; it’s easy and everything works!&nbsp; Of course, this is super bad because it can lead to all kinds of auditing and accountability issues.&nbsp; Be aware that blocking root logins through things like securetty configurations and PAM adjustments is likely not enough to keep someone from logging in as root via SSH! <BR>To verify that root is not permitted to log in directly, look for this line: PermitRootLogin no<BR><BR><BR>- Prakash<BR></FONT><A href="http://www.linkedin.com/in/prakashp" rel=nofollow target=_blank><FONT face="verdana, helvetica, sans-serif">http://www.linkedin.com/in/prakashp</FONT></A></DIV></td></tr></table><br>



      <!--1--><hr size=1></hr> 
The INTERNET now has a personality. YOURS! <a href="http://in.rd.yahoo.com/tagline_yyi_1/*http://in.yahoo.com/" target="_blank">See your Yahoo! Homepage</a>.