<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Blogternals &#187; ssh</title>
	<atom:link href="http://www.blogternals.com/tag/ssh/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.blogternals.com</link>
	<description>Knowledge Belongs to the World!</description>
	<lastBuildDate>Wed, 11 Aug 2010 12:32:12 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
		<item>
		<title>Mount a remote filesystem using SSH via SSHFS</title>
		<link>http://www.blogternals.com/2009/10/01/mount-a-remote-filesystem-using-ssh-via-sshfs/</link>
		<comments>http://www.blogternals.com/2009/10/01/mount-a-remote-filesystem-using-ssh-via-sshfs/#comments</comments>
		<pubDate>Fri, 02 Oct 2009 03:38:51 +0000</pubDate>
		<dc:creator>Allen Sanford</dc:creator>
				<category><![CDATA[SSH]]></category>
		<category><![CDATA[ssh]]></category>
		<category><![CDATA[sshfs]]></category>

		<guid isPermaLink="false">http://www.blogternals.com/?p=1050</guid>
		<description><![CDATA[You like hundreds of other people have decided that it is easier to work on files using a program like Geany, Jedit, or gedit, but your files are located on a remote machine. Some of the GUIs out there have SFTP modules, but you still need good old Filezilla or some program similar to transfer [...]]]></description>
			<content:encoded><![CDATA[<p>You like hundreds of other people have decided that it is easier to work on files using a program like Geany, Jedit, or gedit, but your files are located on a remote machine. Some of the GUIs out there have SFTP modules, but you still need good old Filezilla or some program similar to transfer images and you would still need a terminal <span id="more-1050"></span> for a few other odd end things. It would be neat if one could mount a remote file system on your local computer, and access files the remote host as if they were local files on your pc, right? Well, What if I told you there was a way. I am talking about mounting the remote file system using SSHFS.<br />
The following guide will show just what you need to do to mout remote file systems over ssh.</p>
<blockquote><p>SSHFS:<br />
       sshfs  is  a filesystem client based on the SSH File Transfer Protocol.<br />
       Since most SSH servers already support this protocol it is very easy to<br />
       set  up:  i.e. on the server side there’s nothing to do.  On the client<br />
       side mounting the filesystem is as easy as logging into the server with<br />
       ssh.
</p></blockquote>
<p>If you don&#8217;t already have sshfs installed or don&#8217;t know if you do or not you can run this command and install it:</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p1050code5'); return false;">View Code</a> SHELL</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p10505"><td class="code" id="p1050code5"><pre class="shell" style="font-family:monospace;">    sudo apt-get install sshfs</pre></td></tr></table></div>

<p>This will also install fuse-utils and libfuse2, which are required.</p>
<p>Now, we are going to make a place to mount the remote file system locally. I usually just make a directory in my home directory to mount to because it is going to make a desktop icon for us to use anyway (At least on Ubuntu it will). The name I use for all my examples  of my server is shual so I make this directory now.</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p1050code6'); return false;">View Code</a> SHELL</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p10506"><td class="code" id="p1050code6"><pre class="shell" style="font-family:monospace;">    mkdir ~/shual</pre></td></tr></table></div>

<p>Now it is time to mount the remote file system, make note you can mount any folder or sub-folder that the user you are using has access to.</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p1050code7'); return false;">View Code</a> SHELL</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p10507"><td class="code" id="p1050code7"><pre class="shell" style="font-family:monospace;">    sshfs www-remoteuser@example.com:/var/www ~/shual</pre></td></tr></table></div>

<p>At this point you will either have to give your password and the remote system will be mounted for your use.</p>
<p>Now I guess you need to know how to unmount it</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p1050code8'); return false;">View Code</a> SHELL</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p10508"><td class="code" id="p1050code8"><pre class="shell" style="font-family:monospace;">    fusermount -u ~/home-pc</pre></td></tr></table></div>

<p>Enjoy and Have a Good&#8217;n!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.blogternals.com/2009/10/01/mount-a-remote-filesystem-using-ssh-via-sshfs/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Introducing SSHMenu</title>
		<link>http://www.blogternals.com/2009/09/28/introducing-sshmenu/</link>
		<comments>http://www.blogternals.com/2009/09/28/introducing-sshmenu/#comments</comments>
		<pubDate>Mon, 28 Sep 2009 14:44:59 +0000</pubDate>
		<dc:creator>Allen Sanford</dc:creator>
				<category><![CDATA[Carousel]]></category>
		<category><![CDATA[Featured]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Reviews]]></category>
		<category><![CDATA[SSH]]></category>
		<category><![CDATA[gnome panel]]></category>
		<category><![CDATA[ssh]]></category>

		<guid isPermaLink="false">http://www.blogternals.com/?p=1032</guid>
		<description><![CDATA[OK, I stumbled across one of the most useful apps I have discovered in a long time, SSHMenu. SSHMenu is a panel applet for GNMOME (I have been informed it can be used outside of GNOME as well) that keeps track of all your regular SSH connections and makes them available with a single mouse [...]]]></description>
			<content:encoded><![CDATA[<p>OK, I stumbled across one of the most useful apps I have discovered in a long time, <a href="http://">SSHMenu</a>. <a href="http://sshmenu.sourceforge.net/">SSHMenu</a> is a panel applet for GNMOME (I have been informed it can be used outside of GNOME as well) that keeps track of all your regular SSH connections and makes them available with a single mouse click. Here&#8217;s a screenshot to give you the basic idea (I got this from there home page located <a href="http://sshmenu.sourceforge.net/">http://sshmenu.sourceforge.net/</a>):<br />
<span id="more-1032"></span><br />
<a href="http://www.blogternals.com/wp-content/uploads/2009/09/sshmenu_screenshot.png"><img src="http://www.blogternals.com/wp-content/uploads/2009/09/sshmenu_screenshot-300x160.png" alt="sshmenu_screenshot" title="sshmenu_screenshot" width="300" height="160" class="aligncenter size-medium wp-image-1033" /></a></p>
<p>Each menu option will allow you to open an SSH session in a new terminal window. You can organize the connections into groups of hosts using separator bars or sub-menus. You can even open all the connections on a submenu (in separate windows or tabs) with one click.</p>
<p><a href="http://www.blogternals.com/wp-content/uploads/2009/09/prefs_dialog.png"><img src="http://www.blogternals.com/wp-content/uploads/2009/09/prefs_dialog-287x300.png" alt="prefs_dialog" title="prefs_dialog" width="287" height="300" class="aligncenter size-medium wp-image-1038" /></a></p>
<p>Here&#8217;s a killer feature found in <a href="http://sshmenu.sourceforge.net/">SSHMenu</a> , imagine you just connected to a production server and the terminal window had a red-tinted background, to remind you to tread carefully, well using terminal profiles, <a href="http://sshmenu.sourceforge.net/">SSHMenu</a>  allows you to specify colours, fonts, transparency and a variety of other settings on a per-connection basis. You can even set window size and position, talk about convenient.</p>
<p>The latest source distribution can be downloaded from <a href="http://sourceforge.net/project/showfiles.php?group_id=196084">here</a>, but you&#8217;ll probably want to get a pre-built package for your platform if possible.</p>
<p>If you&#8217;re running Debian, Ubuntu, etc &#8230; you can install the packages directly from the repository locate <a href="http://sshmenu.sourceforge.net/download/deb_repo.html">here</a>. Downloading from these repositories will ensure that the Ruby and GTK dependencies are resolved automatically.</p>
<p>There are <a href="http://sshmenu.sourceforge.net/download/install.html">manual installation</a> instructions that describe all the files in the distribution and where you need to put them on your system to make them work. This information is really targeted at people who wish to build packages for other OS distributions.</p>
<p>For more information setting up <a href="http://sshmenu.sourceforge.net/">SSHMenu</a>  you can visit this page <a href="http://sshmenu.sourceforge.net/setup/">http://sshmenu.sourceforge.net/setup/</a></p>
<p>Enjoy and Have a Good&#8217;n!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.blogternals.com/2009/09/28/introducing-sshmenu/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>SSHD Disable Root Login</title>
		<link>http://www.blogternals.com/2009/05/01/sshd-disable-root-login/</link>
		<comments>http://www.blogternals.com/2009/05/01/sshd-disable-root-login/#comments</comments>
		<pubDate>Fri, 01 May 2009 23:01:40 +0000</pubDate>
		<dc:creator>Allen Sanford</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[disable]]></category>
		<category><![CDATA[root]]></category>
		<category><![CDATA[ssh]]></category>
		<category><![CDATA[SSHD]]></category>

		<guid isPermaLink="false">http://www.blogternals.com/?p=350</guid>
		<description><![CDATA[Aside from moving your sshd port to a non standard port you can also disable the root users ability to directly SSH into your system You do have a regular user account don&#8217;t you well you should. One of the first thing s most installations these days ask for is a regular user account to [...]]]></description>
			<content:encoded><![CDATA[<p>Aside from moving your sshd port to a non standard port you can also disable the root users ability to directly SSH into your system</p>
<p>You do have a regular user account don&#8217;t you well you should. One of the first thing s most installations these days ask for is a regular user account to be setup. Before we begin, you should make sure that you have a regular user account and that you can su or sudo to root from it.</p>
<p>The sshd_config file, is the main configuration file for the sshd service. Not always, but it&#8217;s usually it can be found in /etc/ssh/. Open the file up while logged on as root.</p>
<p><span id="more-350"></span></p>
<p style="padding-left: 30px;"># vim /etc/ssh/sshd_config</p>
<p>Find this section in the file</p>
<p style="padding-left: 30px;">#LoginGraceTime 2m<br />
#PermitRootLogin no<br />
#StrictModes yes<br />
#MaxAuthTries 6</p>
<p>Changethe following to look like this.</p>
<p style="padding-left: 30px;">PermitRootLogin no</p>
<p>Reload your SSHD service configuration.</p>
<p style="padding-left: 30px;"># /etc/ini.d/sshd force-reload</p>
<p>Your done. You should now be able to log into your server using your regular user account then su or sudo to root.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.blogternals.com/2009/05/01/sshd-disable-root-login/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>SSH Authentication Using RSA Keys</title>
		<link>http://www.blogternals.com/2009/01/12/ssh-authentication-using-rsa-keys/</link>
		<comments>http://www.blogternals.com/2009/01/12/ssh-authentication-using-rsa-keys/#comments</comments>
		<pubDate>Tue, 13 Jan 2009 02:03:59 +0000</pubDate>
		<dc:creator>Allen Sanford</dc:creator>
				<category><![CDATA["Left Overs"]]></category>
		<category><![CDATA[authentication]]></category>
		<category><![CDATA[keys]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[RSA]]></category>
		<category><![CDATA[ssh]]></category>
		<category><![CDATA[SSHD]]></category>

		<guid isPermaLink="false">http://www.blogternals.com/?p=97</guid>
		<description><![CDATA[If your daily routine involves accessing a remote linux server(s), you may have asked yourself how do I remember each password for each server, or I wish I could log-in to this system without a password. Well guess what you can fix it so you have the same password or better yet no password at all using RSA keys.]]></description>
			<content:encoded><![CDATA[<p><img class="alignleft size-medium wp-image-99" title="800px-keys_2" src="http://www.blogternals.com/wp-content/uploads/2009/01/800px-keys_2-300x195.jpg" alt="800px-keys_2" width="240" height="156" />If your daily routine involves accessing a remote linux server(s), you may have asked yourself how do I remember each password for each server, or I wish I could log-in to this system without a password. Well guess what you can fix it so you have the same password or better yet no password at all using RSA keys.</p>
<p>The first thing you need to do is make sure you have SSH and SSHD installed on the remote server. Second make sure that <span id="intelliTxt"><em>RSAAuthentication yes </em>is set<em> </em> in your &#8220;/etc/ssh/sshd_config&#8221; and restart SSHD if you changed your configuration file.</span></p>
<p><span><strong># /etc/init.d/sshd restart</strong></span></p>
<p><span>OK, now we are ready to setup your RSA keys. On your local machine (not the server) your notebook, desktop whatever computer you are most likely using now to read this you need to generate your Key Pair</span></p>
<p><span id="intelliTxt"><strong># ssh-keygen -t rsa</strong></span></p>
<p><span>Now you will be prompted for some information here follow the instructions as this can be different on different distros. When you get the question about a pass phrase you can just hit enter and you will not need to enter a password when SSHing into the system. This will generate a few files in your &#8220;~/.ssh&#8221; folder, the most important for what we are doing is id_rsa.pub. This file is the public half of your newly create RSA key pair, which we will need to upload to our server.</span></p>
<p><span><strong># scp ~/.ssh/id_rsa.pub <em>&lt;username&gt;</em>@<em>example.com:~</em></strong></span></p>
<p><span>Now that we have our key uploaded to the server we can login and finish the setup. Once you have SSHed into the server (the remote machine) you will need to concatenate the public key into the &#8220;~/.ssh/authorized_keys&#8221; file. If the ~/.ssh folder does not exists create it and then run the following.</span></p>
<p><span><strong># cat id_rsa.pub &gt;&gt; ~/.ssh/</strong></span><strong><span>authorized_keys</span></strong></p>
<p><span>You are now finish setting up your RSA keys and are ready to test by logging out and logging back into the remote machine.<br />
 </span></p>
]]></content:encoded>
			<wfw:commentRss>http://www.blogternals.com/2009/01/12/ssh-authentication-using-rsa-keys/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Securing SSH</title>
		<link>http://www.blogternals.com/2008/12/26/securing-ssh/</link>
		<comments>http://www.blogternals.com/2008/12/26/securing-ssh/#comments</comments>
		<pubDate>Sat, 27 Dec 2008 05:26:22 +0000</pubDate>
		<dc:creator>Allen Sanford</dc:creator>
				<category><![CDATA["Left Overs"]]></category>
		<category><![CDATA[HowTo Series]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[secure]]></category>
		<category><![CDATA[shell]]></category>
		<category><![CDATA[ssh]]></category>

		<guid isPermaLink="false">http://www.blogternals.com/?p=40</guid>
		<description><![CDATA[One of the wonderful things about the world wide web today is the ability to have your web servers remotely located. The problem however is accessing these remotely located machines. SSH aka secure shell is by far the best choice for Linux servers, but care must be take or your machine could be left completely open to the crackers, hackers, and script kiddies lurking around every corner. The constant attacks by the scoundrels looking for their next zombie machine can be quite cumbersome and possibly a detrimental drain on system resources. Lucky for us we can take about 20 minutes to secure or linux SSH accessibly server. I have included a sample sshd_config file for your convenience.]]></description>
			<content:encoded><![CDATA[<p>One of the wonderful things about the world wide web today is the ability to have your web servers remotely located. The problem however is accessing these remotely located machines. SSH aka secure shell is by far the best choice for Linux servers, but care must be take or your machine could be left completely open to the crackers, hackers, and script kiddies lurking around every corner. The constant attacks by the scoundrels looking for their next zombie machine can be quite cumbersome and possibly a detrimental drain on system resources. Lucky for us we can take about 20 minutes to secure or linux SSH accessibly server. I have included a sample sshd_config file for your convenience.</p>
<p><a href="http://www.blogternals.com/wp-content/uploads/2008/12/sshd_config">sshd_config</a></p>
<h4>Change the port:</h4>
<p>The first and probably the easiest way to dramatically reduce the number of brute force cracking attempts on your server is to change the port that SSHD listens on. By default SSHD listens on port 22 and one of the most commonly used application used to troll for servers with SSHD scans port 22 by default. It is also common knowledge that hackers or crackers will use default port with the assumption; If some took the time and trouble to change their default ssh port, they probably have other methods in place to track my actions, thus moving on to the next server that is an easier target. Plain and simple just change the port which SSH runs on to something random above port 1024.</p>
<h4>Denying Access:</h4>
<p>I like denyhosts but there are also other applications which will accomplish the same thing but I just prefer this one. The basic concept here is that we want to block or deny certain IPs once we determine that the user from this IP is attempting a brute force attack of the SSH port.</p>
<p><a href="/">Installing denyhosts</a> (Article Coming Soon)</p>
<h4>Disallow root login</h4>
<p>Two reasons for this are simple if you think about it. One, the root account exists on all linux machines and is one of the first accounts that any would be intruder is going to attempt to login as. Two, this is the do all end all account, in other words if this account is compromised it&#8217;s game over.</p>
<h4>The protocol:</h4>
<p>most modern day systems are going to be using protocol 2 only but some older distros may still be using protocol 1 or both. This should be pretty straight forward here, the developers that develop SSHD decided that protocol was needed and more secure so why not use it. Would you watch TV on a black and white unit?</p>
<h4>Final Thoughts</h4>
<p>Securing ssh is not hard at all and with a little care and foresight you can save your self a lot of headaches.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.blogternals.com/2008/12/26/securing-ssh/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Linux Server Secure Guidelines</title>
		<link>http://www.blogternals.com/2008/12/24/linux-server-secure-guidelines/</link>
		<comments>http://www.blogternals.com/2008/12/24/linux-server-secure-guidelines/#comments</comments>
		<pubDate>Wed, 24 Dec 2008 22:21:30 +0000</pubDate>
		<dc:creator>Allen Sanford</dc:creator>
				<category><![CDATA["Left Overs"]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[apache2]]></category>
		<category><![CDATA[guidelines]]></category>
		<category><![CDATA[harden]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[secure]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[ssh]]></category>

		<guid isPermaLink="false">http://www.blogternals.com/?p=38</guid>
		<description><![CDATA[This article is not meant to be an end all solve all solution for "Securing Your Linux Server" or as some would say it "Hardening Their Linux Server". The article is meant to be more along the lines of a good set of guide lines. We will cover the 101s of linux server lock down as well as a few advanced tricks that I have come up with through my own experiences. Of coarse I don't have all the answers but I know that someone out there will get some useful information from this, so enjoy, and remember share your knowledge because someone else has already shared their knowledge with you!]]></description>
			<content:encoded><![CDATA[<p>This article is not meant to be an end all solve all solution for &#8220;Securing Your Linux Server&#8221; or as some would say it &#8220;Hardening Their Linux Server&#8221;. The article is meant to be more along the lines of a good set of guide lines. We will cover the 101s of linux server lock down as well as a few advanced tricks that I have come up with through my own experiences. Of coarse I don&#8217;t have all the answers but I know that someone out there will get some useful information from this, so enjoy, and remember share your knowledge because someone else has already shared their knowledge with you!</p>
<h3><span style="text-decoration: underline;">The 101s</span></h3>
<p>In this section I am just going to highlight the common knowledge stuff here. If you are looking for more details of specific things you can do to harden a given service it will be covered in the Advanced Tips section. In the Tips section I will draw out step by step or I will direct you to another article which clearly details what you can do to harden that given service.</p>
<p><strong>Upgrade your system, applications, and the kernel and do it religiously</strong></p>
<p>Hands down most systems are compromised due to lack of diligence when it comes to keeping their servers up-to-date. Most linux distros these days come with some type of package management solution and a way to automate the process of updating the system. It they provide it use it is my motto.</p>
<p><strong>Shadow passwords (system level) and encrypt passwords on the web</strong></p>
<p>Securing your passwords is essential. I can&#8217;t count how many times I have seen people storing passwords plain text and thought to myself are these people for real. Think about this for a second, if I can just read your password what stops me from using it. I want troll here long but please encrypt those passwords.</p>
<p><strong>Use smart passwords</strong></p>
<p>I know I said I would not troll long on the password subject but come on. The first thing we do when loggin into a server is to plug a password in somewhere ssh, telnet, smtp, or some custom application you have written to access the server the list goes on and on. Guess what guys, the first thing a hacker or cracker is gonna try is plugging a password in those same programs.</p>
<p><strong>Use secure shell (ssh)</strong></p>
<p>Ok you should be shot if you are still using telnet. Some of you are saying, &#8220;but my host provider does not provide ssh&#8221;, guess what time to get a new service provider. SSH2 is the only way to go as far as remote access goes. It can be used as a poor mans VPN solution, SFTP, and you can even set up a SOCKS proxy with it. This is a must, I repeat this is a must if you need remote access to your server.</p>
<p><strong>Restrict access to services</strong></p>
<p>Firewalls are your best friend. There are about two dozen firewall apps out there to chose from you just need to figure out what works best for you. I do recommend if you can install a hardware firewall but if you can&#8217;t at least use a software firewall. Other apps you can use here are iptables, denyhosts, fail2ban, and I am sure you can think of some I can&#8217;t.</p>
<p><strong>Turn off or remove unneeded services</strong></p>
<p>If your are not using a service or don&#8217;t know what a service is for shut it down. Not only will you be closing security holes but you will be freeing up resources as well. At the very least you should restrict access to just the ports you need open for your server, this usually means port 80 for apache, your custom SSH port and maybe SMTP or your DB (MySQL, SQL, Oracle, what ever DB you use) port all though I don&#8217;t recommend this.</p>
<p><strong>Automate the restriction of services to &#8220;bad guys&#8221; or at the least install an intrusion detection software</strong></p>
<p>If you don&#8217;t how to write a shell script and set up cron jobs, now is the time to learn. First it is not that hard to learn and second they can save loads of time and as we all know time is resource we don&#8217;t have enough of. Second when it comes to managing, and maintaining a linux server, you are going to repeat tasks over and over so why not have a shell script run at regular intervals to the repeat work for you. You can use denyhosts in conjunction with an automated shell script to create iptables based on the denyhosts application entries to just drop those services for offending ips. At the very least you should install something like tripwire so you know what is happening to your server while you sleep.</p>
<p><strong>Treat your server like it is a money tree</strong></p>
<p>You should not need an explanation here. Your server is making you money right? Even the weekend hobbyist can make money off of google adsense. You should treat your server with the same respect that you would any other resource in your company or hobby. The more care you give it, the better it will preform so do your self a favor and watch it closely and protect it at all times.<br />
 <strong><br />
 </strong></p>
<h3><span style="text-decoration: underline;">Applications, Scripts, and Commands</span></h3>
<p>You need to take some time right now and familiarize yourself with the following apps, scripts, and commands. I can already hear some of you saying OK, another list that does not include blank, tell you what I will listen to your pleas send me an email (webmaster[at]blogternals[dot]com) with a subject of  &#8220;Linux Server Secure Guidelines&#8221; plea your case and I will include your script in the list. Some of you think I am kidding but I will even you give credit for your contribution if you take the time to compose that email.</p>
<p>Anyway without further delay:</p>
<p><strong>awk </strong>- is a general purpose programming language that is designed for processing text-based data, either in files or data streams.<br />
 <strong>bash </strong>- is a free software Unix shell written for the GNU Project.<br />
 <strong>crontab </strong>- is a daemon for automating tasks.<br />
 <strong>dig </strong>- DNS lookup utility.<br />
 <strong>denyhosts </strong>- is a Python based security tool for SSH servers. It is intended to prevent brute force attacks on SSH servers by monitoring the log files<br />
 <strong>free </strong>- Display amount of free and used memory in the system.<br />
 <strong>grep </strong>- print lines matching a pattern.<br />
 <strong>iptables </strong>- is a user space application program that allows a system administrator to configure the tables provided by Xtables and the chains and rules it stores.<br />
 <strong>logwatch </strong>- utility for off site monitoring log files.<br />
 <strong>namp </strong>- Network exploration tool and security / port scanner<br />
 <strong>ps </strong>- report a snapshot of the current processes.<br />
 <strong>ssh </strong>- OpenSSH SSH client (remote login program)</p>
<h3><span style="text-decoration: underline;">Advanced Tips and Tricks</span></h3>
<p>I will make the same comment here about if you don&#8217;t see it send me an email and I&#8217;ll put it here or you could sign up for an account here, write the article, and I will publish it. (webmaster[at]webternals[dot]com)</p>
<ul>
<li><a title="Securing SSH" href="http://www.blogternals.com/2008/12/securing-ssh">Securing SSH</a></li>
<li><a title="Securing Apache" href="http://www.blogternals.com/2008/12/securing-apache">Securing Apache</a> &#8211; (Coming Soon)</li>
<li><a title="Securing MySQL" href="http://www.blogternals.com/2008/1/securing-MySQL">Securing MySQL</a></li>
</ul>
<hr />
]]></content:encoded>
			<wfw:commentRss>http://www.blogternals.com/2008/12/24/linux-server-secure-guidelines/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
