<?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>1-800-HOSTING Blog &#187; linux</title>
	<atom:link href="http://blog.800hosting.com/tag/linux/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.800hosting.com</link>
	<description>Inside 1-800-HOSTING</description>
	<lastBuildDate>Wed, 02 Nov 2011 17:00:58 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Workstation Backup Solutions Pt. 3: Redundancy</title>
		<link>http://blog.800hosting.com/2011/07/workstation-backup-solutions-pt-3-redundancy/</link>
		<comments>http://blog.800hosting.com/2011/07/workstation-backup-solutions-pt-3-redundancy/#comments</comments>
		<pubDate>Thu, 14 Jul 2011 17:00:33 +0000</pubDate>
		<dc:creator> </dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[tips]]></category>
		<category><![CDATA[apple]]></category>
		<category><![CDATA[backups]]></category>
		<category><![CDATA[Cron]]></category>
		<category><![CDATA[Data Retention]]></category>
		<category><![CDATA[Flash Drive]]></category>
		<category><![CDATA[GB]]></category>
		<category><![CDATA[Hard Drive]]></category>
		<category><![CDATA[Jump Drive]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[USB]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://blog.800hosting.com/?p=1741</guid>
		<description><![CDATA[No backup project would be complete without considering redundancy. As I mentioned in my first article (Workstation Backup Solutions Pt. 1: Having One), there are situations you have to consider such as hardware failure, natural disasters, theft, and a few others. Redundancy What?: When we think of redundancy, we care most about having multiple  replication [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://blog.800hosting.com/wp-content/uploads/2011/06/Redundancy_Just_a_few_redundacy_motis-s750x600-58570-580.jpg" rel="shadowbox[sbpost-1741];player=img;"><img class="size-medium wp-image-1921 alignleft" src="http://blog.800hosting.com/wp-content/uploads/2011/06/Redundancy_Just_a_few_redundacy_motis-s750x600-58570-580-300x240.jpg" alt="" width="300" height="240" /></a>No backup project would be complete without considering redundancy. As I mentioned in my first article (<a href="http://blog.800hosting.com/2011/06/workstation-backup-solutions-pt-1-having-one/">Workstation Backup Solutions Pt. 1: Having One</a>), there are situations you have to consider such as hardware failure, natural disasters, theft, and a few others.</p>
<p><strong>Redundancy What?:</strong></p>
<p>When we think of redundancy, we care most about having multiple  replication points in backups (discussed in my second article <a href="http://blog.800hosting.com/2011/07/workstation-backup-solutions-pt-2-methods-retention/">Workstation Backup Solutions Pt. 2: Methods &amp; Retention</a>), and then about replicating that data to other hardware or even geographically different locations. Let me elaborate in the next section.</p>
<p><strong>Redundancy Where?:</strong></p>
<p>With local redundancy (Raid arrays, replicating to multiple physical hard drives/hardware, etc.) you ensure that the information is copied across multiple pieces of equipment, which should minimize data loss in case of hardware failure. The issue with this is that even if you have 10x replication of a single piece of data, unless you live in a bomb shelter with the ultimate fire/flood suppression setup, you can’t really be sure a natural disaster won’t destroy the hardware.</p>
<p>Geographical redundancy is a little bit harder to implement on a budget because of expense involved in keeping multiple sets of hardware in other locations. If you have a friend who can keep a machine elsewhere in the state/province/country/continent/world, it’s good to be you, and the redundancy world is your oyster. For uncool people like us however, buying/renting or collocating a server elsewhere is the best bet. Of course, there are companies that offer remote backups that you can use instead of hosting your own hardware, but with these services come some amount of risk, and you will need to choose wisely in order to avoid a headache.</p>
<p><strong>Redundancy How?: </strong></p>
<p>Firstly, you will have to determine whether you want to simply use raid arrays or local replication, or go with a remote backup option.</p>
<p>With raid arrays, you have the option of software or hardware raid. Software raid, though somewhat reliable, will crash and burn if anything happens to your OS, whereas hardware raid uses a raid controller and is less prone to operational failures. Using raid brings up the problem of whether an additional point of failure such as software glitch, or a hardware controller is worth it. If you buy a good raid controller, you should be better off when considering both raid options. But keep in mind that raid cards fail too. Ultimately, if choosing to use raid, I&#8217;d go with the hardware raid option always.</p>
<p>Local replication is as simple as moving already backed up data to another hard drive or piece of hardware. This can be done using either a drag-drop method, or setting up a script to move it for you. In Windows, simply creating a network share folder and setting up a routine to move the files over works pretty well. In Linux, a cron that runs an rsync or sFTP script works well too. For Mac, a similar procedure can be ran as in Linux environments to move data.</p>
<p>Some backup software may have remote options available for backing things up. It is totally dependent on the awesomeness of the software developers, but this feature is also very often associated with a larger dollar amount for the software. So beware.</p>
<p>For true remote backups, you will need a server or hardware of some sort in a different geographical location to your system. In all honesty, maybe having it at a friend’s house a few lots over isn’t going to be enough space. Think broader. If a natural disaster has the likelihood of hitting both locations around the same time, maybe it’s wise to keep it elsewhere.</p>
<p>A few things to consider when retaining hardware elsewhere is:</p>
<p>1.	Uptime/Relative Network Speed<br />
2.	 Remote hands capabilities<br />
3.	Hardware guarantees on rented machines</p>
<p>All three points are there to minimize headache. If you can’t connect to the remote server, replication is going to be difficult and a lot of hand-holding over the process will take place. If you collocate, you will need to maintain your hardware, and having competent remote hands to install new hardware/fix issues will go a long way. If you rent a server, a hardware guarantee of some sort is a wise idea as well. If you need to rely on a backup, and the remote server has failed without you knowing about it, you can kiss sanity goodbye; there is no going back.</p>
<p>I hope these articles help. There are a lot of options I didn’t cover, and in redundancy no two setups are usually exactly alike. Just remember that a backup plan is better than nothing, multiple sets of backups are better than just a single backup, and a geographic redundancy scheme even better still. Also remember that Google is your friend. You can find a lot of backup articles for workstations and servers from other contributors there.</p>
<p>Cheers!</p>
<h3  class="related_post_title">Related Posts</h3><ul class="related_post"><li><a href="http://blog.800hosting.com/2011/07/workstation-backup-solutions-pt-2-methods-retention/" title=" Workstation Backup Solutions Pt. 2: Methods &amp; Retention"> Workstation Backup Solutions Pt. 2: Methods &amp; Retention</a></li><li><a href="http://blog.800hosting.com/2011/06/workstation-backup-solutions-pt-1-having-one/" title="Workstation Backup Solutions Pt. 1: Having One">Workstation Backup Solutions Pt. 1: Having One</a></li><li><a href="http://blog.800hosting.com/2010/02/php-script-tips-and-resources/" title="PHP Script Tips and Resources">PHP Script Tips and Resources</a></li><li><a href="http://blog.800hosting.com/2011/11/the-truth-will-make-it-free/" title="The Truth Will Make it Free">The Truth Will Make it Free</a></li><li><a href="http://blog.800hosting.com/2010/04/the-new-iphone-brought-to-you-by-gizmodo/" title="The new iPhone brought to you by Gizmodo">The new iPhone brought to you by Gizmodo</a></li><li><a href="http://blog.800hosting.com/2010/01/apples-new-ipad/" title="Apple&#8217;s new iPad">Apple&#8217;s new iPad</a></li><li><a href="http://blog.800hosting.com/2009/12/a-little-security-goes-a-loooong-way/" title="A Little Security Goes a LOOOONG Way">A Little Security Goes a LOOOONG Way</a></li><li><a href="http://blog.800hosting.com/2009/12/drupal-free-website-building-tool/" title="Drupal &#8211; Free Website Building Tool">Drupal &#8211; Free Website Building Tool</a></li><li><a href="http://blog.800hosting.com/2009/11/how-a-1-800-hosting-geek-maintains-his-backups/" title="How a 1-800-HOSTING Geek Maintains His Backups">How a 1-800-HOSTING Geek Maintains His Backups</a></li><li><a href="http://blog.800hosting.com/2009/11/linux-tip-setting-up-key-based-authentication/" title="Linux Tip: Setting up key-based authentication.">Linux Tip: Setting up key-based authentication.</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://blog.800hosting.com/2011/07/workstation-backup-solutions-pt-3-redundancy/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Workstation Backup Solutions Pt. 2: Methods &amp; Retention</title>
		<link>http://blog.800hosting.com/2011/07/workstation-backup-solutions-pt-2-methods-retention/</link>
		<comments>http://blog.800hosting.com/2011/07/workstation-backup-solutions-pt-2-methods-retention/#comments</comments>
		<pubDate>Thu, 07 Jul 2011 16:53:48 +0000</pubDate>
		<dc:creator> </dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[tips]]></category>
		<category><![CDATA[apple]]></category>
		<category><![CDATA[backups]]></category>
		<category><![CDATA[Cron]]></category>
		<category><![CDATA[Data Retention]]></category>
		<category><![CDATA[Flash Drive]]></category>
		<category><![CDATA[GB]]></category>
		<category><![CDATA[Hard Drive]]></category>
		<category><![CDATA[Jump Drive]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[USB]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://blog.800hosting.com/?p=1717</guid>
		<description><![CDATA[In my last article Workstation Backup Solutions Pt. 1: Having One, I loosely talked about some methods to use for backups, and brought up retention. If you’ve taken into consideration anything I’ve said thus far, you would probably already be considering both. But, for the sake of delving more thoroughly into all the possibilities, let [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://blog.800hosting.com/wp-content/uploads/2011/07/theworld.jpg" rel="shadowbox[sbpost-1717];player=img;"><img src="http://blog.800hosting.com/wp-content/uploads/2011/07/theworld-293x300.jpg" alt="" width="293" height="300" class="alignleft size-medium wp-image-1871" /></a>In my last article <a href="http://blog.800hosting.com/2011/06/workstation-backup-solutions-pt-1-having-one/">Workstation Backup Solutions Pt. 1: Having One</a>, I loosely talked about some methods to use for backups, and brought up retention. If you’ve taken into consideration anything I’ve said thus far, you would probably already be considering both. But, for the sake of delving more thoroughly into all the possibilities, let us continue with this premise.</p>
<p>Methods and retention vary from OS to OS, as does retention jargon. In fact, even the software within an OS may use different terminology for retention methods depending on their architecture and marketing prowess. Because it can get so confusing, we will stick with generic terms, and keep it light.</p>
<p><strong>Methods:</strong></p>
<p><em>Manually</em> – Nothing beats good ol’ fashion drag/drop backups. They’re reliable, you know what you’re moving over to your backup space, and you can do it at your leisure. The issue with this is they’re not automatic (As you’ll find going to the movies instead of moving files, is much more fun.) If you don’t like the movies, and instead like this option, more power to you, I think movies are overpriced anyway. But, this option isn’t for everyone.</p>
<p><em>Commands/Scripts</em> – This method takes a little bit more know-how. The good thing is, most everything you need in regards to this are available on Google, or other search engines/sites. You don’t have to get out your Shell Scripting for Dummies and learn shell script or DOS to do this. Instead of reinventing the wheel, read about how other people did, and use the extra time to go see that overpriced movie. </p>
<p><em>Software</em> &#8211; Software will do just about the same thing as commands/scripts, as that is pretty much what their back-end is, but it will be presented in jelly buttons, and cool progress bars that aren’t accurate. The good thing about this option is that it makes things easy, and usually encompasses both the method, and has retention policy options. The downside is that software not laced with adware/virus, or advertisements costs money, and sometimes quite a bit of money. </p>
<p>Overall, compression and retention are going to be more involved on the first and second option. The third usually has a compression option built in. When you look for software, or are going to develop your own backup scripts, you will want to take into consideration these things. </p>
<p><strong>Retention:</strong></p>
<p><em>Yearly/Monthly/Weekly/Daily/Hourly/Minutely</em> – When writing this, I didn’t think minutely was a real word as it sounds silly, but I was wrong. When choosing a method, you will want to think about how long you want to keep your data, and how it is backed up. Some software allows you to backup on the minute basis, others only allow less frequent backups, such as daily, or weekly. This can be a game changer if you need a twice daily solution (Every 12 hours) or need multiple schema, such as a backup daily, and also a backup hourly of say, a highly written to file. </p>
<p><em>Full</em> – There are two major types of full backups. One that retains the filesystem structure, and the other retains all of the necessary components to restore the entire OS. Whatever the type, it will retain a full backup of all of the files/folders and structure of your system. Most backup software will just retain the filesystem structure, but won’t be able to do a bare-metal restore. This means you will need to reinstall the OS, then restore the files accordingly. Keep in mind that you most likely will lose your installed applications, though the files for them will still be intact. </p>
<p><em>Incremental/Differential</em> – When we talk about incremental and differential ,there are very technical differences between the two. Know however, that typically differential are backing up only files that have changed since the last full backup. Incrementals are files changing since the last backup, whether it be full, or the last incremental. Both are designed to save time and diskspace when backing up and restoring, but are also difficult to construct without very in-depth knowledge of the OS you’re trying to backup. In other words, it’s easier to use software that has this option than try to create a backup scheme from coding yourself, that is, unless you’re a super-supremo-awesome coder. In that case, go for it, let’s team up and market that. I could always use more money…</p>
<p><em>Continuous</em> – If this wasn’t self explanatory enough by the name, I really can’t help you understand it better than talking about its technical aspects. A continuous backup basically backs up your data…well…continuously, but references your first full backup the same as incremental/differentials do to determine what has changed. Some are as specific as will backup even a draft save on your latest Word document, others wait until you’ve saved a copy and a write to the hard drive is made. Either way, it can be very beneficial to have this in case a revision to a file was a mistake, and you need the previous version. </p>
<p>In conclusion, as your backup needs change, you can evaluate these options more. Always weigh out the benefits of going for a more feature filled software first instead of having to buy whole new software later on. If you think you will grow into it, and the price point isn’t that much higher, well….I don’t even need to tell you. Just use logical judgment. As for making your own schema, the same rule applies. A little more work while creating the setup will go a long way in terms of you not needing to touch it for awhile. Grow as necessary though, and project slightly into the future. </p>
<h3  class="related_post_title">Related Posts</h3><ul class="related_post"><li><a href="http://blog.800hosting.com/2011/07/workstation-backup-solutions-pt-3-redundancy/" title="Workstation Backup Solutions Pt. 3: Redundancy">Workstation Backup Solutions Pt. 3: Redundancy</a></li><li><a href="http://blog.800hosting.com/2011/06/workstation-backup-solutions-pt-1-having-one/" title="Workstation Backup Solutions Pt. 1: Having One">Workstation Backup Solutions Pt. 1: Having One</a></li><li><a href="http://blog.800hosting.com/2010/02/php-script-tips-and-resources/" title="PHP Script Tips and Resources">PHP Script Tips and Resources</a></li><li><a href="http://blog.800hosting.com/2011/11/the-truth-will-make-it-free/" title="The Truth Will Make it Free">The Truth Will Make it Free</a></li><li><a href="http://blog.800hosting.com/2010/04/the-new-iphone-brought-to-you-by-gizmodo/" title="The new iPhone brought to you by Gizmodo">The new iPhone brought to you by Gizmodo</a></li><li><a href="http://blog.800hosting.com/2010/01/apples-new-ipad/" title="Apple&#8217;s new iPad">Apple&#8217;s new iPad</a></li><li><a href="http://blog.800hosting.com/2009/12/a-little-security-goes-a-loooong-way/" title="A Little Security Goes a LOOOONG Way">A Little Security Goes a LOOOONG Way</a></li><li><a href="http://blog.800hosting.com/2009/12/drupal-free-website-building-tool/" title="Drupal &#8211; Free Website Building Tool">Drupal &#8211; Free Website Building Tool</a></li><li><a href="http://blog.800hosting.com/2009/11/how-a-1-800-hosting-geek-maintains-his-backups/" title="How a 1-800-HOSTING Geek Maintains His Backups">How a 1-800-HOSTING Geek Maintains His Backups</a></li><li><a href="http://blog.800hosting.com/2009/11/linux-tip-setting-up-key-based-authentication/" title="Linux Tip: Setting up key-based authentication.">Linux Tip: Setting up key-based authentication.</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://blog.800hosting.com/2011/07/workstation-backup-solutions-pt-2-methods-retention/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Workstation Backup Solutions Pt. 1: Having One</title>
		<link>http://blog.800hosting.com/2011/06/workstation-backup-solutions-pt-1-having-one/</link>
		<comments>http://blog.800hosting.com/2011/06/workstation-backup-solutions-pt-1-having-one/#comments</comments>
		<pubDate>Thu, 30 Jun 2011 21:53:52 +0000</pubDate>
		<dc:creator> </dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[tips]]></category>
		<category><![CDATA[apple]]></category>
		<category><![CDATA[backups]]></category>
		<category><![CDATA[Cron]]></category>
		<category><![CDATA[Data Retention]]></category>
		<category><![CDATA[Flash Drive]]></category>
		<category><![CDATA[GB]]></category>
		<category><![CDATA[Hard Drive]]></category>
		<category><![CDATA[Jump Drive]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[Time Machine]]></category>
		<category><![CDATA[USB]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://blog.800hosting.com/?p=1704</guid>
		<description><![CDATA[In a world of ever increasing data, those of us who don’t backup our precious files are downright insane. I’ve had instances where I could have backed up my data, a failure/accidental deletion/unintended alteration occurred and I was kicking myself for a long time. The reality is, that backups sometimes seem difficult to perform on [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://blog.800hosting.com/wp-content/uploads/2011/06/Mrt.jpg" rel="shadowbox[sbpost-1704];player=img;"><img src="http://blog.800hosting.com/wp-content/uploads/2011/06/Mrt.jpg" alt="" width="478" height="211" class="alignnone size-full wp-image-1745" /></a></p>
<p>In a world of ever increasing data, those of us who don’t backup our precious files are downright insane. I’ve had instances where I could have backed up my data, a failure/accidental deletion/unintended alteration occurred and I was kicking myself for a long time. The reality is, that backups sometimes seem difficult to perform on a regular basis, and effectively. But what I’m here to say is that even if your backup policy seemingly dry-heaves in comparison to other&#8217;s, it is still backing up something.</p>
<p>Sometimes, the difference between my desire to destroy my computer, or kiss it and whisper sweet binary to it has been the ability for me to retrieve past data. And that starts with, you guessed it, some sort of backup routine. </p>
<p>Now, if you’re Apple users and use Time Machine already, I loath you for your self-sustainability, and you can stop reading now (J/K). For those of us who regularly use Windows or Linux machines, and are strapped for cash and can’t afford expensive software, a simple secondary hard drive is the first step. </p>
<p>For the sake of simplicity, we will continue to discuss simple work/home computer backups, but if you really need a server backup schema, we can always sell you a solution. <img src='http://blog.800hosting.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  </p>
<p>With that shameless plug out of the way, let&#8217;s go over a few different drive options.</p>
<p>1.	An internal hard drive, or an external USB option (I suggest a USB powered model as backup failures can occur if the hard drive power cable fails, or is inadvertently unplugged.)<br />
2.	A USB flash/jump drive.<br />
3.	A compact flash or other media card.</p>
<p>Depending on the type of data you’re backing up, the amount of time you want to retain it, and the depth of your wallet, these options should suffice for most backups. </p>
<p>An internal hard drive poses a lot of very beneficial characteristics. You wouldn’t need to worry necessarily about it unplugging, it is powered intrinsically, and you don’t have to look at it. An external hard drive has the benefit of being unplugged and moved around, but can then unfortunately be accidentally unplugged. </p>
<p>A flash drive and CF/Media card are quick and reliable options if you are just doing periodic snapshots, but eventually their read/write life-cycle will be met, and you run the risk of losing data or encountering data corruption more quickly due to hardware failure than you do with a good brand of hard drive. Also, for more than 16GB of data, most reliable brands get unreasonably expensive.</p>
<p>The simplest way to backup things is just to categorize your data, and pull it over to the hard drive. Creating folders with titles in date form will organize your data as well. The thing to remember is that at the onset of a backup routine, keep it simple. If pulling over files once a week is your routine, than stick to it and add components later on as necessary. </p>
<p>There are a few options for creating a routine if you can’t be at your computer at the same time every day. Windows has a backup routine in the Accessories area you can use, you can get tech-savvy and research how to code your own .bat script, or you can purchase a one-time fee software that allows you to setup routines as well. For Linux users, a script that runs a copy command  of selected data to the secondary drive and is scheduled by a cron will work as well. </p>
<p>Ultimately, after you get started backing up your data, you will notice certain caveats to the backup process itself, mainly, data retention equaling too much space usage, local backups not saving your data in case of a fire/natural disaster/theft, and other encumbrances. At that point you’re ready to move onto the next level, and we can discuss that in the next article. But keep in mind, the first step in the journey of a thousand gigabytes starts with the backup of the first gigabyte. Knowing this, you will go far, my young padawan.</p>
<h3  class="related_post_title">Related Posts</h3><ul class="related_post"><li><a href="http://blog.800hosting.com/2011/07/workstation-backup-solutions-pt-3-redundancy/" title="Workstation Backup Solutions Pt. 3: Redundancy">Workstation Backup Solutions Pt. 3: Redundancy</a></li><li><a href="http://blog.800hosting.com/2011/07/workstation-backup-solutions-pt-2-methods-retention/" title=" Workstation Backup Solutions Pt. 2: Methods &amp; Retention"> Workstation Backup Solutions Pt. 2: Methods &amp; Retention</a></li><li><a href="http://blog.800hosting.com/2010/02/php-script-tips-and-resources/" title="PHP Script Tips and Resources">PHP Script Tips and Resources</a></li><li><a href="http://blog.800hosting.com/2011/11/the-truth-will-make-it-free/" title="The Truth Will Make it Free">The Truth Will Make it Free</a></li><li><a href="http://blog.800hosting.com/2010/04/the-new-iphone-brought-to-you-by-gizmodo/" title="The new iPhone brought to you by Gizmodo">The new iPhone brought to you by Gizmodo</a></li><li><a href="http://blog.800hosting.com/2010/01/apples-new-ipad/" title="Apple&#8217;s new iPad">Apple&#8217;s new iPad</a></li><li><a href="http://blog.800hosting.com/2009/12/a-little-security-goes-a-loooong-way/" title="A Little Security Goes a LOOOONG Way">A Little Security Goes a LOOOONG Way</a></li><li><a href="http://blog.800hosting.com/2009/12/drupal-free-website-building-tool/" title="Drupal &#8211; Free Website Building Tool">Drupal &#8211; Free Website Building Tool</a></li><li><a href="http://blog.800hosting.com/2009/11/how-a-1-800-hosting-geek-maintains-his-backups/" title="How a 1-800-HOSTING Geek Maintains His Backups">How a 1-800-HOSTING Geek Maintains His Backups</a></li><li><a href="http://blog.800hosting.com/2009/11/linux-tip-setting-up-key-based-authentication/" title="Linux Tip: Setting up key-based authentication.">Linux Tip: Setting up key-based authentication.</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://blog.800hosting.com/2011/06/workstation-backup-solutions-pt-1-having-one/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PHP Script Tips and Resources</title>
		<link>http://blog.800hosting.com/2010/02/php-script-tips-and-resources/</link>
		<comments>http://blog.800hosting.com/2010/02/php-script-tips-and-resources/#comments</comments>
		<pubDate>Mon, 01 Feb 2010 17:30:41 +0000</pubDate>
		<dc:creator>John Cunningham</dc:creator>
				<category><![CDATA[Fun Stuff]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[tips]]></category>
		<category><![CDATA[drupal]]></category>
		<category><![CDATA[free php scripts]]></category>
		<category><![CDATA[google crawler]]></category>
		<category><![CDATA[googlebot]]></category>
		<category><![CDATA[joomla]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[osCommerce]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[website]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://blog.800hosting.com/?p=1205</guid>
		<description><![CDATA[PHP is a language absolutely made for websites. PHP code can be inserted into an html page to enable dynamic creation. Many content management systems like Drupal, Joomla, and osCommerce  use PHP together with MySQL to build webpages. You can use PHP to detect crawling activity, rotate images/banners, and process forms. Here is an example [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://static.php.net/www.php.net/images/php.gif" alt="php" /> PHP is a language absolutely made for websites. <a title="php" href="http://php.net/" target="_blank">PHP</a> code can be inserted into an html page to enable dynamic creation. Many content management systems like Drupal, Joomla, and osCommerce  use PHP together with MySQL to build webpages.<span id="more-1205"></span></p>
<p>You can use PHP to detect crawling activity, rotate images/banners, and process forms. Here is an example of code that will email you whenever Google crawler Googlebot visits your page by detecting the useragent. You could expand the code to include other crawlers, add date and time stamp, and validate the IP to exclude impostors. I left that stuff out for simplicity and because you can  get that info from your webstats/logs. Just copy and paste this code in your web page to try it out. Note that the page may have to end with .php file extension to work, it depends on how your web server is setup.</p>
<blockquote><p>&lt;?<br />
if(eregi(&#8220;Googlebot&#8221;,$_SERVER['HTTP_USER_AGENT'])){</p>
<p>//put your email address below<br />
$address=youname@yourdomain.com;<br />
$subject=&#8221;Google visited &#8220;.$_SERVER[’HTTP_HOST’];<br />
$message=&#8221;Googlebot visited today.&#8221;;<br />
mail($address, $subject, $message);<br />
}<br />
?&gt;</p></blockquote>
<p>Here is an example of how to display  random images in a web page, it will pick one of the three banners each time the page loads. You could easily add more cases here or change the img src line to make this a random text function.</p>
<blockquote><p>&lt;?<br />
$randomimage = Rand (1,3) ;</p>
<p>//put your image name at bannerx<br />
switch ($randomimage)<br />
{<br />
case 1:<br />
&#8220;banner1&#8243;;<br />
break;</p>
<p>case 2:<br />
&#8220;banner2&#8243;;<br />
break;</p>
<p>case 3:<br />
&#8220;banner3&#8243;;<br />
break;<br />
}</p>
<p>echo &#8216;&lt;img src=&#8221;&#8216;$randomimage.&#8217;&#8221; border=0&gt;&#8217;;</p>
<p>?&gt;</p></blockquote>
<p>Another cool thing you can do is filter form data to by blocking bad words, banning ip addresses, and setting a timer with a cookie. There is nothing worse than having your website form spammed. You can get the visitor&#8217;s IP address with a built in php function and then check it against a list of bad IP addresses you have stored in a list called an <em>array</em>. You can modify this to include words by replacing the IP addresses with words. This is useful if there is a relatively small number of abusers. In the case of larger numbers, blocking at the server level using <a title="iptables wikipedia definition" href="http://en.wikipedia.org/wiki/Iptables" target="_blank">iptables</a> or a firewall may work better for you.</p>
<p>Here is the code for blocking IPs and you can add more IPs to the array if needed:</p>
<blockquote><p>&lt;?<br />
$banned_ip_addresses = array(&#8217;4.2.5.5&#8242;, &#8217;64.43.67.19&#8242;, &#8217;207.22.32.152&#8242;);</p>
<p>if(in_array($_SERVER['REMOTE_ADDR'], $banned_ip_addresses))<br />
{<br />
echo &#8220;You are banned.&#8221;;<br />
} else {<br />
continue with form processing&#8230;<br />
}</p></blockquote>
<p>If you are having problems with abusive surfers filling out your forms with constantly changing ip addresses, you can stop them by adding a cookie. A cookie is a small piece of code sent to the user&#8217;s pc to identify them.  Note that not all browsers will accept cookies, but most will. Once the cookie is set, you check for the existence of it in your form processing. Here is an example:</p>
<blockquote><p>//this sets time to 7200 seconds, 2 hours<br />
&lt;?<br />
setcookie(&#8220;userx&#8221;, &#8220;cookie1&#8243;, time()+7200);<br />
?&gt;</p>
<p>Then add the code below to find out if this person has been on your page before:</p>
<p>&lt;?<br />
if (isset($_COOKIE1["userx"])){<br />
echo &#8220;You have already filled out this form recently&#8221;;</p>
<p>} else {<br />
continue with form processing&#8230;<br />
}<br />
?&gt;</p></blockquote>
<p>There is a plethora of PHP support websites on the Internet. My longtime favorite is  <a title="php freaks forum" href="http://www.phpfreaks.com/forums/" target="_blank">PHP Freaks Forum</a> where you can post  technical questions and read responses. Another good one is the <a title="digital point php forum" href="http://forums.digitalpoint.com/forumdisplay.php?f=37" target="_blank">Digital Point PHP Forum</a>. If you are looking for scripts then visit <a title="hotscripts" href="http://www.hotscripts.com/category/php/scripts-programs/" target="_blank">Hotscripts</a>, where you will find many, some free and some paid. Also check out <a title="free scripts directory" href="http://gscripts.net/" target="_blank">Free Scripts Directory</a>,  <a title="script repository" href="http://www.sitescripts.com/PHP/" target="_blank">Script Repository</a>, and <a title="php resource index" href="http://php.resourceindex.com/Complete_Scripts/" target="_blank">PHP Resource Index</a>. They have scripts for: counters, auctions, voting, calculators, searching, support ticketing, etc.</p>
<p>PHP works fine on both Linux and Windows systems. If you have a Linux box then chances are good that it is already installed; if not, visit <a title="php" href="http://php.net/" target="_blank">php.net</a> to download it. PHP is not standard on Windows but it can be installed. If you need technical support we can help you with installing or upgrading.</p>
<p>PHP is very powerful. In an upcoming post I will explain how to speed it up using accelerators, pull data from a database, write it to a webpage, and add functionality using extensions.</p>
<h3  class="related_post_title">Related Posts</h3><ul class="related_post"><li><a href="http://blog.800hosting.com/2011/07/workstation-backup-solutions-pt-3-redundancy/" title="Workstation Backup Solutions Pt. 3: Redundancy">Workstation Backup Solutions Pt. 3: Redundancy</a></li><li><a href="http://blog.800hosting.com/2011/07/workstation-backup-solutions-pt-2-methods-retention/" title=" Workstation Backup Solutions Pt. 2: Methods &amp; Retention"> Workstation Backup Solutions Pt. 2: Methods &amp; Retention</a></li><li><a href="http://blog.800hosting.com/2011/06/workstation-backup-solutions-pt-1-having-one/" title="Workstation Backup Solutions Pt. 1: Having One">Workstation Backup Solutions Pt. 1: Having One</a></li><li><a href="http://blog.800hosting.com/2009/12/drupal-free-website-building-tool/" title="Drupal &#8211; Free Website Building Tool">Drupal &#8211; Free Website Building Tool</a></li><li><a href="http://blog.800hosting.com/2009/05/linux-shell-insights-volume-2/" title="Linux Shell Insights: Volume 2">Linux Shell Insights: Volume 2</a></li><li><a href="http://blog.800hosting.com/2009/05/linux-shell-insights-volume-1/" title="Linux Shell Insights: Volume 1">Linux Shell Insights: Volume 1</a></li><li><a href="http://blog.800hosting.com/2011/08/mysql-error-in-the-errmsg-sys-file/" title="MySQL Error in the errmsg.sys file">MySQL Error in the errmsg.sys file</a></li><li><a href="http://blog.800hosting.com/2010/01/mysql-version-6-preview/" title="MySQL Version 6 Preview">MySQL Version 6 Preview</a></li><li><a href="http://blog.800hosting.com/2009/12/a-little-security-goes-a-loooong-way/" title="A Little Security Goes a LOOOONG Way">A Little Security Goes a LOOOONG Way</a></li><li><a href="http://blog.800hosting.com/2009/11/linux-tip-setting-up-key-based-authentication/" title="Linux Tip: Setting up key-based authentication.">Linux Tip: Setting up key-based authentication.</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://blog.800hosting.com/2010/02/php-script-tips-and-resources/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>A Little Security Goes a LOOOONG Way</title>
		<link>http://blog.800hosting.com/2009/12/a-little-security-goes-a-loooong-way/</link>
		<comments>http://blog.800hosting.com/2009/12/a-little-security-goes-a-loooong-way/#comments</comments>
		<pubDate>Thu, 03 Dec 2009 16:46:09 +0000</pubDate>
		<dc:creator>John Cunningham</dc:creator>
				<category><![CDATA[Fun Stuff]]></category>
		<category><![CDATA[firewall]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[Windows Home Server]]></category>

		<guid isPermaLink="false">http://blog.800hosting.com/?p=849</guid>
		<description><![CDATA[Security is only as secure as your weakest link. It&#8217;s tough to imagine and believe, but in this business you just have to suck it up and believe it. You can have 50 hardware and software firewalls, but if you have 3 year old exploitable php email form code, you&#8217;re as good as a DMZ [...]]]></description>
			<content:encoded><![CDATA[<p>Security is only as secure as your weakest link. It&#8217;s tough to imagine and believe, but in this business you just have to suck it up and believe it. You can have 50 hardware and software firewalls, but if you have 3 year old exploitable php email form code, you&#8217;re as good as a DMZ server with no password. People go to school for security. There is no doubt that it&#8217;s a complex realm, but truth be told, it doesn&#8217;t have to be. <span id="more-849"></span>We&#8217;ve all read &#8220;Secure Your Password&#8221; or Change Port&#8221; but I don&#8217;t think people really take it for what it&#8217;s worth. If you are like my parents and hate the idea of passwords and using them, let me be the first to tell you, you are in the wrong business. We have caught a lot of our customers with simple passwords and unfortunately it is after they have received three abuse complaints about IRC hack attempts. A few minor changes really will help and go a <em>long way!</em></p>
<p>Don&#8217;t take it lightly when you see reminders to use a more complex password. I&#8217;m not saying you should use a 50 alpha numeric password, but a nice 8-digit password with at least one Uppercase, Number, and Symbol. If you&#8217;re not creative enough, there are plenty of random password generators out there. Brute forcing passwords is an old, but still used hack attempt these days and isn&#8217;t even the most popular way hackers get into servers.</p>
<p>The biggest step you can take to help protect your server is changing your default RDP/SSH ports, even your FTP and other program ports. I think a lot of admins don&#8217;t do this because they fear it&#8217;s a complex step. It&#8217;s not! For windows, it&#8217;s as simple as using regedit (OOOO SCARY!!, calm down and just be careful) Do the following for windows 2003:</p>
<p><em>Start-&gt;Run-&gt; type regedit</em></p>
<p><em>Navigate to </em><em>HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp</em></p>
<p><em>In the right Pane, look for PortNumber</em></p>
<p><em>Simply change the port number to whatever you want. Usually I keep my birth date in my port number changes. e.g. 3371 (Not my real birth date, but you get the point.)</em></p>
<p><em>When you reconnect to the server just make sure you append the port number. e.g. xx.xx.xxx.xxx:3371</em><em><br />
</em></p>
<p>In Linux, it&#8217;s even simpler. All you need to do is edit the sshd_config. To do this you do the following:</p>
<p><em>Use your favorite text editor and edit /etc/ssh/sshd_config</em></p>
<p><em>At the very top of the config is your current port 22</em></p>
<p><em>#Port 22<br />
#Protocol 2,1<br />
Protocol 2<br />
#AddressFamily any<br />
#ListenAddress 0.0.0.0<br />
#ListenAddress ::</em></p>
<p><em>Simply uncomment by removing the &#8216;#&#8217; and choose a new port. Idea, let&#8217;s go with the birth date method. e.g. 2271. So it will now look like:</em></p>
<p><em>Port 2271<br />
#Protocol 2,1<br />
Protocol 2<br />
#AddressFamily any<br />
#ListenAddress 0.0.0.0<br />
#ListenAddress ::</em></p>
<p><em>Now all you have to do is restart ssh (this process is different depending on your distro, just google restart ssh) To connect from another client using the new IP, do:</em></p>
<p><em>ssh -p 2271 root@xx.xx.xxx.xxx</em></p>
<p>Lastly, using a firewall really does help. The built in windows firewall works. It&#8217;s simple, basic and easy to use. Just make sure before you enable it to add your new RDP port. If you forget, you know <a title="1-800-HOSTING support contact" href="mailto:support@800hosting.com" target="_blank">where to reach us</a>. The same goes with IPTABLES in Linux.</p>
<p>You might be surprised, but the majority of successful hack attempts are done through poor or outdated code. It&#8217;s the long lived battle of the programmer v. web-dude, but belief in what I said above will mean nothing if your code is vulnerable. The same goes with using your windows server to surf the web. <strong>DO NOT SURF THE INTERNET WITH YOUR WINDOWS SERVER</strong>. You are asking for trouble by doing so. Remote desktop has a file transfer program built into it for a reason.</p>
<p>In short,</p>
<p>-Use a more complex password</p>
<p>-Change your default ports</p>
<p>-Add a firewall</p>
<p>-Don&#8217;t use your server like a workstation to browse the web and download files.</p>
<p>Hope this helps.</p>
<h3  class="related_post_title">Related Posts</h3><ul class="related_post"><li><a href="http://blog.800hosting.com/2011/07/workstation-backup-solutions-pt-3-redundancy/" title="Workstation Backup Solutions Pt. 3: Redundancy">Workstation Backup Solutions Pt. 3: Redundancy</a></li><li><a href="http://blog.800hosting.com/2011/07/workstation-backup-solutions-pt-2-methods-retention/" title=" Workstation Backup Solutions Pt. 2: Methods &amp; Retention"> Workstation Backup Solutions Pt. 2: Methods &amp; Retention</a></li><li><a href="http://blog.800hosting.com/2011/06/workstation-backup-solutions-pt-1-having-one/" title="Workstation Backup Solutions Pt. 1: Having One">Workstation Backup Solutions Pt. 1: Having One</a></li><li><a href="http://blog.800hosting.com/2010/02/php-script-tips-and-resources/" title="PHP Script Tips and Resources">PHP Script Tips and Resources</a></li><li><a href="http://blog.800hosting.com/2009/12/drupal-free-website-building-tool/" title="Drupal &#8211; Free Website Building Tool">Drupal &#8211; Free Website Building Tool</a></li><li><a href="http://blog.800hosting.com/2009/11/linux-tip-setting-up-key-based-authentication/" title="Linux Tip: Setting up key-based authentication.">Linux Tip: Setting up key-based authentication.</a></li><li><a href="http://blog.800hosting.com/2009/06/memory_cache_in_linux/" title="Linux: Low memory &#8211; feature or a bug?">Linux: Low memory &#8211; feature or a bug?</a></li><li><a href="http://blog.800hosting.com/2009/05/linux-shell-insights-volume-2/" title="Linux Shell Insights: Volume 2">Linux Shell Insights: Volume 2</a></li><li><a href="http://blog.800hosting.com/2009/05/linux-shell-insights-volume-1/" title="Linux Shell Insights: Volume 1">Linux Shell Insights: Volume 1</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://blog.800hosting.com/2009/12/a-little-security-goes-a-loooong-way/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Drupal &#8211; Free Website Building Tool</title>
		<link>http://blog.800hosting.com/2009/12/drupal-free-website-building-tool/</link>
		<comments>http://blog.800hosting.com/2009/12/drupal-free-website-building-tool/#comments</comments>
		<pubDate>Tue, 01 Dec 2009 17:56:08 +0000</pubDate>
		<dc:creator>John Cunningham</dc:creator>
				<category><![CDATA[Company]]></category>
		<category><![CDATA[Industry]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[1-800-HOSTING]]></category>
		<category><![CDATA[content management]]></category>
		<category><![CDATA[drupal]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[open source]]></category>

		<guid isPermaLink="false">http://blog.800hosting.com/?p=950</guid>
		<description><![CDATA[The Drupal content management system is software that makes it easy to build a great looking website. With Drupal, you can create pages using templates and easily add content using the admin control panel. In my opinion, it is a good choice for all types of sites such as blogs, portals, corporate or government sites. [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://blog.800hosting.com/2009/12/drupal-free-website-building-tool/"><img class="alignright size-full wp-image-963" title="drupal-logo" src="http://blog.800hosting.com/wp-content/uploads/2009/12/drupal-logo.jpg" alt="drupal-logo" width="91" height="105" /></a>The <a title="Drupal" href="http://drupal.org/" target="_blank">Drupal </a>content management system is software that makes it easy to build a great looking website. With Drupal, you can create pages using templates and easily add content using the admin control panel. In my opinion, it is a good choice for all types of sites such as blogs, portals, corporate or government sites.<span id="more-950"></span></p>
<p>Drupal is based on a system of templates where you can use the built-in ones or make your own. It has some cool features built in such as chat forums, rss, video and podcasting options. Currently, there are thousands of websites using Drupal such as <a title="Spread Firefox" href="http://www.spreadfirefox.com/" target="_blank">Spread Firefox</a>, <a title="The White House" href="http://www.whitehouse.gov/" target="_blank">The White house</a>, and <a title="The Onion" href="http://www.theonion.com/content/index" target="_blank">The Onion</a>. There are many more listed on <a title="Drupal Sites" href="http://www.drupalsites.net/" target="_blank">Drupal Sites</a>. Drupal is an open source software package licensed under the GNU GPL and runs great on a Linux server with Apache, PHP, and MySQL. We here at 1-800-Hosting are Drupal friendly and can help with installation as well as well hosting technical support like unix file permissions, phpinfo(), mod_security, php file size and memory limits.</p>
<p>The best thing I like about Drupal is that it can be extended with <a title="drupal modules" href="http://drupalmodules.com/" target="_blank">third party modules</a> in order to add functions. You can add search, instant messenger, cron, voting, image browsing, slideshow, google analytics, e-commerce, and chat room. If you&#8217;re looking for an easy way to get a website up and running without the hassles of back-end development, take a look at Drupal. It can make building a site a little easier without getting lost in the interweb fray.</p>
<h3  class="related_post_title">Related Posts</h3><ul class="related_post"><li><a href="http://blog.800hosting.com/2010/02/php-script-tips-and-resources/" title="PHP Script Tips and Resources">PHP Script Tips and Resources</a></li><li><a href="http://blog.800hosting.com/2009/05/linux-shell-insights-volume-2/" title="Linux Shell Insights: Volume 2">Linux Shell Insights: Volume 2</a></li><li><a href="http://blog.800hosting.com/2009/05/linux-shell-insights-volume-1/" title="Linux Shell Insights: Volume 1">Linux Shell Insights: Volume 1</a></li><li><a href="http://blog.800hosting.com/2011/08/using-a-content-management-system-cms/" title="Using a Content Management System (CMS)">Using a Content Management System (CMS)</a></li><li><a href="http://blog.800hosting.com/2011/07/workstation-backup-solutions-pt-3-redundancy/" title="Workstation Backup Solutions Pt. 3: Redundancy">Workstation Backup Solutions Pt. 3: Redundancy</a></li><li><a href="http://blog.800hosting.com/2011/07/workstation-backup-solutions-pt-2-methods-retention/" title=" Workstation Backup Solutions Pt. 2: Methods &amp; Retention"> Workstation Backup Solutions Pt. 2: Methods &amp; Retention</a></li><li><a href="http://blog.800hosting.com/2011/07/send-us-your-postcards/" title="Send Us Your Postcards!">Send Us Your Postcards!</a></li><li><a href="http://blog.800hosting.com/2011/06/workstation-backup-solutions-pt-1-having-one/" title="Workstation Backup Solutions Pt. 1: Having One">Workstation Backup Solutions Pt. 1: Having One</a></li><li><a href="http://blog.800hosting.com/2010/01/employee-appreciation-and-the-lost-art-of-the-road-trip/" title="Employee Appreciation and the Lost Art of the Road Trip">Employee Appreciation and the Lost Art of the Road Trip</a></li><li><a href="http://blog.800hosting.com/2010/01/a-resolution-to-keep-resolutions/" title="A Resolution to Keep Resolutions">A Resolution to Keep Resolutions</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://blog.800hosting.com/2009/12/drupal-free-website-building-tool/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Linux Tip: Setting up key-based authentication.</title>
		<link>http://blog.800hosting.com/2009/11/linux-tip-setting-up-key-based-authentication/</link>
		<comments>http://blog.800hosting.com/2009/11/linux-tip-setting-up-key-based-authentication/#comments</comments>
		<pubDate>Wed, 11 Nov 2009 21:05:06 +0000</pubDate>
		<dc:creator>John Cunningham</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[tips]]></category>
		<category><![CDATA[key-based ssh authentication]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[linux how-to]]></category>
		<category><![CDATA[linux tips]]></category>

		<guid isPermaLink="false">http://blog.800hosting.com/?p=865</guid>
		<description><![CDATA[In this post I&#8217;ll explain how to use key-based SSH authentication in Linux. This can be used either for non-password based authentication for scripts or other utilities, or for extra security when paired with a pass phrase key. We&#8217;ll need to generate a key-pair, a public-key and a private-key. The public-key will be placed on [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://blog.800hosting.com/2009/11/linux-tip-setting-up-key-based-authentication"><img class="size-full wp-image-877 alignright" title="linux-penguin" src="http://blog.800hosting.com/wp-content/uploads/2009/11/linux-penguin.jpg" alt="linux-penguin" width="125" height="148" /></a>In this post I&#8217;ll explain how to use key-based SSH authentication in Linux.</p>
<p>This can be used either for non-password based authentication for scripts or other utilities, or for extra security when paired with a pass phrase key.<span id="more-865"></span></p>
<p>We&#8217;ll need to generate a key-pair, a public-key and a private-key. The public-key will be placed on the server, and you will log in with your private-key. You will need to enter a passphrase for security (or leave blank for password-less auth.)</p>
<p>First generate the key:</p>
<blockquote><p>ssh-keygen -t rsa -b 1024 -C &#8220;your-email-address&#8221;</p></blockquote>
<p>This will create a 1024 bit key using RSA in your current directory. You will need to transfer it to the server you wish to authenticate with by some means, you can use SCP if you have an SCP client like this:</p>
<blockquote><p>scp -p id_rsa.pub user@server:~/</p></blockquote>
<p>Then log in to the remote server, and put the file in the authorized_keys for the user you want to authenticate with.</p>
<blockquote><p>mkdir ~/.ssh<br />
chmod 700 ~/.ssh<br />
cat ~/id_rsa.pub &gt;&gt; ~/.ssh/authorized_keys<br />
chmod 600 ~/.ssh/authorized_keys<br />
mv id_rsa.pub ~/.ssh</p></blockquote>
<p>Sometimes you may have to delete the public key file on the local machine to be able to log in, e.g.</p>
<blockquote><p>rm rsa.pub</p></blockquote>
<p>Once you&#8217;re done, try to log in to the remote host, and if everything was done right, you should be in!</p>
<h3  class="related_post_title">Related Posts</h3><ul class="related_post"><li><a href="http://blog.800hosting.com/2011/07/workstation-backup-solutions-pt-3-redundancy/" title="Workstation Backup Solutions Pt. 3: Redundancy">Workstation Backup Solutions Pt. 3: Redundancy</a></li><li><a href="http://blog.800hosting.com/2011/07/workstation-backup-solutions-pt-2-methods-retention/" title=" Workstation Backup Solutions Pt. 2: Methods &amp; Retention"> Workstation Backup Solutions Pt. 2: Methods &amp; Retention</a></li><li><a href="http://blog.800hosting.com/2011/06/workstation-backup-solutions-pt-1-having-one/" title="Workstation Backup Solutions Pt. 1: Having One">Workstation Backup Solutions Pt. 1: Having One</a></li><li><a href="http://blog.800hosting.com/2010/02/php-script-tips-and-resources/" title="PHP Script Tips and Resources">PHP Script Tips and Resources</a></li><li><a href="http://blog.800hosting.com/2009/12/a-little-security-goes-a-loooong-way/" title="A Little Security Goes a LOOOONG Way">A Little Security Goes a LOOOONG Way</a></li><li><a href="http://blog.800hosting.com/2009/12/drupal-free-website-building-tool/" title="Drupal &#8211; Free Website Building Tool">Drupal &#8211; Free Website Building Tool</a></li><li><a href="http://blog.800hosting.com/2009/06/memory_cache_in_linux/" title="Linux: Low memory &#8211; feature or a bug?">Linux: Low memory &#8211; feature or a bug?</a></li><li><a href="http://blog.800hosting.com/2009/05/linux-shell-insights-volume-2/" title="Linux Shell Insights: Volume 2">Linux Shell Insights: Volume 2</a></li><li><a href="http://blog.800hosting.com/2009/05/linux-shell-insights-volume-1/" title="Linux Shell Insights: Volume 1">Linux Shell Insights: Volume 1</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://blog.800hosting.com/2009/11/linux-tip-setting-up-key-based-authentication/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

