<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://serverkb.co.uk/index.php?action=history&amp;feed=atom&amp;title=Security</id>
	<title>Security - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://serverkb.co.uk/index.php?action=history&amp;feed=atom&amp;title=Security"/>
	<link rel="alternate" type="text/html" href="http://serverkb.co.uk/index.php?title=Security&amp;action=history"/>
	<updated>2026-05-17T02:39:05Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.42.4</generator>
	<entry>
		<id>http://serverkb.co.uk/index.php?title=Security&amp;diff=419&amp;oldid=prev</id>
		<title>Rootadminacc: /* Disabling the root user */</title>
		<link rel="alternate" type="text/html" href="http://serverkb.co.uk/index.php?title=Security&amp;diff=419&amp;oldid=prev"/>
		<updated>2013-03-07T13:19:33Z</updated>

		<summary type="html">&lt;p&gt;&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Disabling the root user&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 14:19, 7 March 2013&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l19&quot;&gt;Line 19:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 19:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Set this value:&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Set this value:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;pre&amp;gt;PermitRootLogin no&amp;lt;/pre&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;pre&amp;gt;PermitRootLogin no&amp;lt;/pre&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Exit the file and type&lt;/del&gt;:&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt; &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Check sudo is actually installed&lt;/ins&gt;:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt; &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;pre&amp;gt;apt-get install sudo&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;yum install sudo&amp;lt;/pre&amp;gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt; &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;pre&amp;gt;visudo&amp;lt;/pre&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;pre&amp;gt;visudo&amp;lt;/pre&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Under User privilege specification (on Ubuntu) or Allow root to run any commands anywhere (on CentOS)&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Under User privilege specification (on Ubuntu) or Allow root to run any commands anywhere (on CentOS)&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key SKBmw:diff:1.41:old-332:rev-419:php=table --&gt;
&lt;/table&gt;</summary>
		<author><name>Rootadminacc</name></author>
	</entry>
	<entry>
		<id>http://serverkb.co.uk/index.php?title=Security&amp;diff=332&amp;oldid=prev</id>
		<title>Rootadminacc: /* Password Safety */</title>
		<link rel="alternate" type="text/html" href="http://serverkb.co.uk/index.php?title=Security&amp;diff=332&amp;oldid=prev"/>
		<updated>2013-02-22T14:42:40Z</updated>

		<summary type="html">&lt;p&gt;&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Password Safety&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 15:42, 22 February 2013&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l56&quot;&gt;Line 56:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 56:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;http://www.google.co.uk/goodtoknow/online-safety/passwords&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;http://www.google.co.uk/goodtoknow/online-safety/passwords&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Unix password cracking (rough article): http://www.governmentsecurity.org/articles/crack-unix-linux-passwords.html&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== Protection against brute-force ==&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== Protection against brute-force ==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key SKBmw:diff:1.41:old-36:rev-332:php=table --&gt;
&lt;/table&gt;</summary>
		<author><name>Rootadminacc</name></author>
	</entry>
	<entry>
		<id>http://serverkb.co.uk/index.php?title=Security&amp;diff=36&amp;oldid=prev</id>
		<title>Rootadminacc: Created page with &quot;== Autokick SSH user after specified time ==  if [ -n &quot;$SSH_CONNECTION&quot; ]; then export TMOUT=300; fi  This will check if a user is logged in using ssh and will log out the use...&quot;</title>
		<link rel="alternate" type="text/html" href="http://serverkb.co.uk/index.php?title=Security&amp;diff=36&amp;oldid=prev"/>
		<updated>2013-01-15T11:36:45Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;== Autokick SSH user after specified time ==  if [ -n &amp;quot;$SSH_CONNECTION&amp;quot; ]; then export TMOUT=300; fi  This will check if a user is logged in using ssh and will log out the use...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;== Autokick SSH user after specified time ==&lt;br /&gt;
&lt;br /&gt;
if [ -n &amp;quot;$SSH_CONNECTION&amp;quot; ]; then export TMOUT=300; fi&lt;br /&gt;
&lt;br /&gt;
This will check if a user is logged in using ssh and will log out the user automatically after the specified time in seconds without data retrieval on the server side. Will work with bash and zsh so put it into your sourced shell file on the server side. Be aware that users can change this themselves as it&amp;#039;s just a environment variable.&lt;br /&gt;
&lt;br /&gt;
== Clear bash history ==&lt;br /&gt;
&lt;br /&gt;
export HISTSIZE=0&lt;br /&gt;
&lt;br /&gt;
== Create secure password in SSH ==&lt;br /&gt;
&lt;br /&gt;
genpassdeep() { cat /dev/urandom | tr -dc [:alnum:] | head -c64 | whirlpooldeep; echo; }&lt;br /&gt;
&lt;br /&gt;
== Disabling the root user ==&lt;br /&gt;
&lt;br /&gt;
Enter this file:&lt;br /&gt;
&amp;lt;pre&amp;gt;vim /etc/ssh/sshd_config&amp;lt;/pre&amp;gt;&lt;br /&gt;
Set this value:&lt;br /&gt;
&amp;lt;pre&amp;gt;PermitRootLogin no&amp;lt;/pre&amp;gt;&lt;br /&gt;
Exit the file and type:&lt;br /&gt;
&amp;lt;pre&amp;gt;visudo&amp;lt;/pre&amp;gt;&lt;br /&gt;
Under User privilege specification (on Ubuntu) or Allow root to run any commands anywhere (on CentOS)&lt;br /&gt;
&amp;lt;pre&amp;gt;root    ALL=(ALL) ALL&lt;br /&gt;
username   ALL=(ALL) ALL&amp;lt;/pre&amp;gt;&lt;br /&gt;
Restart SSH and now the root user cannot log in unless done via the new user with root privileges:&lt;br /&gt;
&amp;lt;pre&amp;gt;/etc/init.d/ssh restart&amp;lt;/pre&amp;gt;&lt;br /&gt;
Do not close your current connection and open a new connection:&lt;br /&gt;
&amp;lt;pre&amp;gt;ssh -pX username@IPaddress (where X = your SSH port number)&lt;br /&gt;
sudo su -&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== [http://www.md5hashgenerator.com MD5 Hash Generator] ==&lt;br /&gt;
&lt;br /&gt;
== [http://serverkb.co.uk/wiki/General_Linux#File_Permissions Permissions] ==&lt;br /&gt;
&lt;br /&gt;
== John the Ripper ==&lt;br /&gt;
&lt;br /&gt;
http://www.osix.net/modules/article/?id=455&amp;lt;br&amp;gt;&lt;br /&gt;
http://www.openwall.com/john/doc/EXAMPLES.shtml ([http://www.openwall.com/john/doc/CONFIG.shtml Config])&amp;lt;br&amp;gt;&lt;br /&gt;
http://pka.engr.ccny.cuny.edu/~jmao/node/26&amp;lt;br&amp;gt;&lt;br /&gt;
http://pentestsh.webs.com/apps/blog/show/20717358-netbios-nbns-spoofing#.UL-DZMmkqso.twitter&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- === John the Ripper ===&lt;br /&gt;
&lt;br /&gt;
http://www.watchguard.com/infocenter/editorial/135213.asp&amp;lt;br&amp;gt;&lt;br /&gt;
http://comments.gmane.org/gmane.comp.security.openwall.john.user/1467&amp;lt;br&amp;gt;&lt;br /&gt;
http://www.linuxquestions.org/questions/linux-newbie-8/no-such-file-directory-179276/&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
fopen: $JOHN/dynamic.conf: No such file or directory&lt;br /&gt;
&lt;br /&gt;
http://unix.stackexchange.com/questions/2366/program-for-decrypt-linux-shadow-file&amp;lt;br&amp;gt;&lt;br /&gt;
http://www.cyberciti.biz/faq/unix-linux-password-cracking-john-the-ripper&lt;br /&gt;
http://www.webhostingtalk.com/showthread.php?t=166625--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Password Safety ==&lt;br /&gt;
&lt;br /&gt;
http://www.google.co.uk/goodtoknow/online-safety/passwords&lt;br /&gt;
&lt;br /&gt;
== Protection against brute-force ==&lt;br /&gt;
&lt;br /&gt;
Some methods that may help to increase OS security against external attacks including brute-force are:&lt;br /&gt;
&lt;br /&gt;
* Use key-based authentication only&lt;br /&gt;
* [[Security#Disabling_the_root_user | Close SSH access for the root user]]&lt;br /&gt;
* Configuring of sshd daemon listening to using of exclusive IPs only&lt;br /&gt;
* Change sshd daemon port from 22 to another in /etc/ssh/sshd_config , more information at the [[SSH | SSH]] page.&lt;br /&gt;
&lt;br /&gt;
There is a lot of third-party solutions for the same purpose:&lt;br /&gt;
&lt;br /&gt;
* [http://denyhosts.sourceforge.net DenyHosts] - scans log files and configures tcp wrapper rules&lt;br /&gt;
* [http://cryptknock.sourceforge.net Cryptknock] - opens the ssh port if required&lt;br /&gt;
* [http://blocksshd.sourceforge.net BlockSSHd] - analyzes logs and configures firewall rules&lt;br /&gt;
* [http://www.sshguard.net SSHGuard] - monitors logs and configures firewalls&lt;br /&gt;
&lt;br /&gt;
== Tools ==&lt;br /&gt;
&lt;br /&gt;
[http://freecode.com/projects/rkhunter rkhunter (Rootkit Hunter)]&amp;lt;br&amp;gt;&lt;br /&gt;
[http://sourceforge.net/projects/sentrytools/ Sentry Tools]&lt;br /&gt;
&lt;br /&gt;
To check the rkhunter log for problems on Linux do:&lt;br /&gt;
&lt;br /&gt;
cat /file/path/rkhunter.log | grep found | grep -v None | grep -v Not&amp;lt;br&amp;gt;&lt;br /&gt;
cat /file/path/rkhunter.log | grep &amp;quot;Warning: Found&amp;quot;&lt;/div&gt;</summary>
		<author><name>Rootadminacc</name></author>
	</entry>
</feed>