<?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>The Linux Noob &#187; SSH</title>
	<atom:link href="http://thelinuxnoob.com/tag/ssh/feed/" rel="self" type="application/rss+xml" />
	<link>http://thelinuxnoob.com</link>
	<description>Fixin' issues one ticket at a time!</description>
	<lastBuildDate>Wed, 28 Jul 2010 16:51:23 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Installing RKHunter</title>
		<link>http://thelinuxnoob.com/security/setup-rkhunter/</link>
		<comments>http://thelinuxnoob.com/security/setup-rkhunter/#comments</comments>
		<pubDate>Fri, 11 Dec 2009 05:36:22 +0000</pubDate>
		<dc:creator>Clayton</dc:creator>
				<category><![CDATA[Security]]></category>
		<category><![CDATA[rkhunter]]></category>
		<category><![CDATA[rootkit]]></category>
		<category><![CDATA[SSH]]></category>

		<guid isPermaLink="false">http://thelinuxnoob.com/?p=73</guid>
		<description><![CDATA[Be honest, how much have you considered server security in the past?  In this day and age, it&#8217;s not something that should be taken lightly.  Today I&#8217;ll be teaching you how to install RKHunter.  RKHunter (ie:  Rootkit Hunter) is a nifty little script that runs via cron daily that checks your server for the most]]></description>
			<content:encoded><![CDATA[<p>Be honest, how much have you considered server security in the past?  In this day and age, it&#8217;s not something that should be taken lightly.  Today I&#8217;ll be teaching you how to install RKHunter.  RKHunter (ie:  Rootkit Hunter) is a nifty little script that runs via cron daily that checks your server for the most obvious rootkits that might have been placed there by somebody with some kind of malicious intent.</p>
<p><span id="more-73"></span></p>
<p>Note:  This tutorial is written as of RKHunter v1.3.4.  Always make sure that you&#8217;re installing the latest version for best results.</p>
<p>First we&#8217;re going to download the script, extract it, and begin the installer.  Copy this code and paste it into your SSH window.</p>
<blockquote><p>wget http://garr.dl.sourceforge.net/sourceforge/rkhunter/rkhunter-1.3.4.tar.gz<br />
tar -zxvf rkhunter-1.3.4.tar.gz<br />
cd rkhunter-1.3.4<br />
./installer.sh &#8211;layout default &#8211;install</p></blockquote>
<p>Hard right?  Guess what, that&#8217;s it for the installation!  Next you can run a scan by pasting the following line into your SSH window:</p>
<blockquote><p>/usr/local/bin/rkhunter -c<!--more--></p></blockquote>
<p>Updating RKHunter is just about, if not easier than the installation.  Updating RKHunter retrieves the latest database from the rootkit.nl central server and matches your server OS to help prevent false positives.  To update just execute the following command:</p>
<blockquote><p>/usr/local/bin/rkhunter –update</p></blockquote>
<p>Now lets set it up so that it scans daily and emails you a copy of the results.  Let&#8217;s start by setting up a daily cron job:</p>
<blockquote><p>nano /etc/cron.daily/rkhunter.sh</p></blockquote>
<p>That created a new empty cron job, now let&#8217;s give it something to do.  Copy these lines into the new file you just created, making sure to replace your email address:</p>
<blockquote><p>#!/bin/bash<br />
(/usr/local/bin/rkhunter -c –cronjob 2&gt;&amp;1 | mail -s “Daily Rkhunter Scan Report” email@domain.com)</p></blockquote>
<p>Now we&#8217;ll save the file we just created by doing the following:</p>
<blockquote><p>ctrl-x to close the file, Hit &#8220;y&#8221; to accept the file changes, and hit enter to overwrite the file.</p></blockquote>
<p>And we&#8217;ll finish off our cron job by executing the following command:</p>
<blockquote><p>chmod +x /etc/cron.daily/rkhunter.sh</p></blockquote>
<p>And that&#8217;s it!  Keep in mind, RKHunter is only a small tool in a very large array of server security tools.  That&#8217;s for another post though.</p>
]]></content:encoded>
			<wfw:commentRss>http://thelinuxnoob.com/security/setup-rkhunter/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Session.save_path error</title>
		<link>http://thelinuxnoob.com/linux/session-save_path-error/</link>
		<comments>http://thelinuxnoob.com/linux/session-save_path-error/#comments</comments>
		<pubDate>Tue, 01 Dec 2009 10:28:27 +0000</pubDate>
		<dc:creator>Clayton</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Php.ini]]></category>
		<category><![CDATA[SSH]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[session.save_path]]></category>

		<guid isPermaLink="false">http://thelinuxnoob.com/?p=71</guid>
		<description><![CDATA[So&#8230;I came across this error on a clients site which he was receiving when trying to install a 3rd party script. The session.save_path setting in your php configuration file (php.ini) is not set or is set to a folder which did not exist. You might need to set the save_path setting in php.ini or verify]]></description>
			<content:encoded><![CDATA[<p>So&#8230;I came across this error on a clients site which he was receiving when trying to install a 3rd party script.</p>
<blockquote><p>The session.save_path setting in your php configuration file (php.ini) is not set or is set to a folder which did not exist. You might need to set the save_path setting in php.ini or verify that the folder sets in save_path exist.</p></blockquote>
<p>It&#8217;s a pretty simple fix in the servers php.ini.<span id="more-71"></span> First thing you need to do is locate your servers copy of the php.ini by running the following command via SSH.</p>
<blockquote><p>root@lolwut [~]# php -i | grep php.ini<br />
Configuration File (php.ini) Path =&gt; /usr/local/lib<br />
Loaded Configuration File =&gt; /usr/local/lib/php.ini<br />
root@lolwut [~]#</p></blockquote>
<p>Once you&#8217;ve found the php.ini, use your favorite editor and locate the following line.</p>
<blockquote><p>root@lolwut [~]# grep &#8216;session.save_path&#8217; /usr/local/lib/php.ini<br />
;     session.save_path = &#8220;N;/path&#8221;<br />
;session.save_path = /tmp<br />
;       (see session.save_path above), then garbage collection does *not*<br />
root@lolwut [~]#</p></blockquote>
<p>In this case, simply remove &#8220;;&#8221; which will uncomment the line. If you are missing the &#8220;/tmp&#8221; part of the line, you will need to add it. Make these changes and save the file, then restart apache and you&#8217;re good to go.</p>
]]></content:encoded>
			<wfw:commentRss>http://thelinuxnoob.com/linux/session-save_path-error/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Install fantastico on cPanel</title>
		<link>http://thelinuxnoob.com/linux/install-fantastico-on-cpanel/</link>
		<comments>http://thelinuxnoob.com/linux/install-fantastico-on-cpanel/#comments</comments>
		<pubDate>Sun, 29 Nov 2009 06:07:05 +0000</pubDate>
		<dc:creator>Clayton</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[SSH]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[cPanel]]></category>
		<category><![CDATA[fantastico]]></category>
		<category><![CDATA[ioncube]]></category>
		<category><![CDATA[makecpphp]]></category>
		<category><![CDATA[WHM]]></category>

		<guid isPermaLink="false">http://thelinuxnoob.com/?p=51</guid>
		<description><![CDATA[A fantastico installation is pretty straight forward. First thing you need to do is obtain a Fantastico license from Netenburg. One of the most common issues when installing fantastico is a buggy wget install on the server, so a working wget version will need to be installed. Another common issue is cPanels internal php may]]></description>
			<content:encoded><![CDATA[<p>A fantastico installation is pretty straight forward. First thing you need to do is obtain a Fantastico license from <a href="http://www.netenberg.com/fantastico.php" target="_blank">Netenburg</a>.</p>
<p>One of the most common issues when installing fantastico is a buggy wget install on the server, so a working wget version will need to be installed. Another common issue is cPanels internal php may break, but we will discuss the fix to that later on. <span id="more-51"></span>To install the working version of wget run the following commands:</p>
<blockquote><p>rpm -qa wget ;<br />
wget ftp://ftp.funet.fi/pub/mirrors/ftp.redhat.com/pub/fedora/linux/core/5/i386/os/Fedora/RPMS/wget-1.10.2-3.2.1.i386.rpm<br />
chattr -ia /usr/bin/wget<br />
rpm -e wget ;<br />
rpm -ivh &#8211;force wget-1.10.2-3.2.1.i386.rpm ;<br />
rpm -qa wget ;</p></blockquote>
<p>First thing is downloading the Fantastico files to the server.</p>
<blockquote><p>/scripts/upcp<br />
cd /usr/local/cpanel/whostmgr/docroot/cgi<br />
wget -N http://www.netenberg.com/files/free/fantastico_whm_admin.tgz<br />
tar -xzpf fantastico_whm_admin.tgz<br />
rm -rf fantastico_whm_admin.tgz</p></blockquote>
<p>Once the files have been downloaded, log into WHM with your root account and select <strong>&#8220;F</strong>antastico De Luxe WHM Admin&#8221; under the plugin section on the left side of WHM at the bottom.<br />
<!-- br--></p>
<p style="text-align: center;"><img class="aligncenter" title="Fantstico side" src="/tutorials/fantastico/1.jpg" alt="" width="201" height="96" /></p>
<p><!-- br--><br />
You will then go the Fantastico main page, where you will select &#8220;Click here&#8221; under &#8216;Version Information&#8217; in the middle. Now select the stable version from the drop down menu.<br />
<!-- br--></p>
<p style="text-align: center;"><img class="aligncenter" title="Fantastico tut" src="/tutorials/fantastico/2.jpg" alt="" width="360" height="154" /></p>
<p><!-- br--><br />
Now follow the remaining steps using the default information, as all of it should be correct, though you may want to double check. Be sure to select &#8220;enable&#8221; next to suexec if it is installed on the server and also check the VPS section if you have installed this on a VPS.</p>
<p>If you receive cpanel_phpengine errors when logged into Fantastico as end user, run the following command via SSH.</p>
<blockquote>
<p style="text-align: left;">/scripts/makecpphp</p>
</blockquote>
<p>You may also run into an ioncube error when trying to log into Fantastico, which can be fixed by logging into WHM as root -&gt; Tweak Settings -&gt; Loader to use for internal cPanel PHP -&gt; IonCube -&gt; Save</p>
<p>If you have any issues with your install, feel free to comment this post.</p>
]]></content:encoded>
			<wfw:commentRss>http://thelinuxnoob.com/linux/install-fantastico-on-cpanel/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>Exim Error: Ratelimit database not available</title>
		<link>http://thelinuxnoob.com/linux/ratelimit-database-not-available/</link>
		<comments>http://thelinuxnoob.com/linux/ratelimit-database-not-available/#comments</comments>
		<pubDate>Thu, 19 Nov 2009 02:17:50 +0000</pubDate>
		<dc:creator>Clayton</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Mail Issues]]></category>
		<category><![CDATA[SSH]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[cPanel]]></category>
		<category><![CDATA[exim]]></category>
		<category><![CDATA[ratelimit]]></category>

		<guid isPermaLink="false">http://thelinuxnoob.com/?p=44</guid>
		<description><![CDATA[2009-07-20 21:58:07 Failed to get write lock for /var/spool/exim/db/ratelimit.lockfile: timed out 2008-07-20 21:58:07 H=[xx.xx.xx.xx] temporarily rejected connection in “connect” ACL: ratelimit database not available To fix such an error , the exim cache database on the server side needs to be clear off to stop this message. Run the folllowing command on root : root@lolwut]]></description>
			<content:encoded><![CDATA[<div>
<p>2009-07-20 21:58:07 Failed to get write lock for /var/spool/exim/db/ratelimit.lockfile: timed out<br />
2008-07-20 21:58:07 H=[xx.xx.xx.xx] temporarily rejected connection in “connect” ACL: ratelimit database not available</p>
<p>To fix such an error , the exim cache database on the server side needs to be clear off to stop this message.<span id="more-44"></span></p>
<p>Run the folllowing command on root :</p>
<blockquote><p>root@lolwut [~]# rm -fv /var/spool/exim/db/*</p></blockquote>
<p>Output :</p>
<blockquote><p>removed `/var/spool/exim/db/ratelimit’<br />
removed `/var/spool/exim/db/ratelimit.lockfile’<br />
removed `/var/spool/exim/db/retry’<br />
removed `/var/spool/exim/db/retry.lockfile’<br />
removed `/var/spool/exim/db/wait-dk_remote_smtp’<br />
removed `/var/spool/exim/db/wait-dk_remote_smtp.lockfile’<br />
removed `/var/spool/exim/db/wait-remote_smtp’<br />
removed `/var/spool/exim/db/wait-remote_smtp.lockfile’</p></blockquote>
<p>Then run the following command on root:</p>
<blockquote><p>root@lolwut [~]# service exim restart</p></blockquote>
<p>If this doesn’t work , then run  /scripts/upcp –force on the server and then check exim_mainlog for the changes.</p></div>
]]></content:encoded>
			<wfw:commentRss>http://thelinuxnoob.com/linux/ratelimit-database-not-available/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>Creating an extracting tar files</title>
		<link>http://thelinuxnoob.com/linux/create-and-extract-tar-files/</link>
		<comments>http://thelinuxnoob.com/linux/create-and-extract-tar-files/#comments</comments>
		<pubDate>Sat, 07 Nov 2009 16:37:28 +0000</pubDate>
		<dc:creator>Clayton</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[SSH]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[compress folder]]></category>
		<category><![CDATA[decompress folder]]></category>
		<category><![CDATA[gzip]]></category>
		<category><![CDATA[tar]]></category>
		<category><![CDATA[tar.gz]]></category>

		<guid isPermaLink="false">http://thelinuxnoob.com/?p=36</guid>
		<description><![CDATA[The most common compressed archive file format in Linux is the tar.gz format. Tar file is an archive file format. Tar.gz is a compressed tar file. How to create a compressed tar.gz file from a folder or file in Linux? In order to create a compressed tar.gz archive from a folder/file we need to run]]></description>
			<content:encoded><![CDATA[<p>The most common compressed archive file format in Linux is the tar.gz format. Tar file is an archive file format. <a href="http://en.wikipedia.org/wiki/Tar_(file_format)">Tar.gz</a> is a compressed tar file.</p>
<h3>How to create a compressed tar.gz file from a folder or file in Linux?</h3>
<p>In order to create a compressed tar.gz archive from a folder/file we need to run the following tar command:</p>
<p><code>tar -czf new-tar-file-name.tar.gz file-or-folder-to-archive</code></p>
<p>Here is the command explanation:</p>
<ul>
<li>tar &#8211; the tar command.</li>
<li>c &#8211; create new archive.</li>
<li>z &#8211; compress the archive using gzip.</li>
<li>f &#8211; use archive file.</li>
<li>new-tar-file-name.tar.gz &#8211; the name of the tar.gz to create.</li>
<li>file-or-folder-to-archive &#8211; the name of the folder we want to archive.</li>
</ul>
<h3><span id="more-36"></span></h3>
<h3>How to create a compressed tar.gz file from multiple files and folders in Linux?</h3>
<p>In order to create a compressed tar.gz file from multiple files or/and folders we need to run the same tar command we used when we archived a single file/folder and to append the rest of the files/folders&#8217; names to it.</p>
<p><code>tar -czf new-tar-file-name.tar.gz file1 file2 folder1 folder2</code></p>
<h3>How to extract a compressed tar.gz file in Linux?</h3>
<p><code>tar -xzf tar-file-name.tar.gz</code></p>
<p>Here is the command explanation:</p>
<ul>
<li>tar &#8211; the tar command.</li>
<li>x &#8211; extract the archive.</li>
<li>z &#8211; uncompress the archive using gzip.</li>
<li>f &#8211; use archive file.</li>
<li>tar-file-name.tar.gz &#8211; the name of the tar.gz to create.</li>
</ul>
<p>The tar command will extract all the files/folders in the archive to the current directory.</p>
<h3>How to extract a compressed tar.bz2 file in Linux?</h3>
<p>Extracting tar.bz2 (bzip2 file) is very similar to the way you extract tar.gz file. Instead of using the -z flag you need to use the -j flag for the bzip2 format</p>
<p><code>tar -xjf tar-file-name.tar.gz</code></p>
<p>Here is the command explanation:</p>
<ul>
<li>tar &#8211; the tar command.</li>
<li>x &#8211; extract the archive.</li>
<li>j - filter the archive through bzip2</li>
<li>f &#8211; use archive file.</li>
<li>tar-file-name.tar.gz &#8211; the name of the tar.gz to create.</li>
</ul>
<p>The tar command will extract all the files/folders in the archive to the current directory.</p>
]]></content:encoded>
			<wfw:commentRss>http://thelinuxnoob.com/linux/create-and-extract-tar-files/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>pty, ptyp, and tty errors</title>
		<link>http://thelinuxnoob.com/linux/pty-ptyp-and-tty-errors/</link>
		<comments>http://thelinuxnoob.com/linux/pty-ptyp-and-tty-errors/#comments</comments>
		<pubDate>Mon, 02 Nov 2009 16:49:31 +0000</pubDate>
		<dc:creator>Clayton</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[SSH]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[root]]></category>
		<category><![CDATA[vps]]></category>

		<guid isPermaLink="false">http://thelinuxnoob.com/?p=25</guid>
		<description><![CDATA[So I came across this error for the first time today when trying to SSH directly into a clients VPS. login as: root root@server&#8217;s password: Server refused to allocate pty stdin: is not a tty After a quick google search I came across the fix. [root@node /]# vzlist -a VEID      NPROC STATUS  IP_ADDR         HOSTNAME 1337]]></description>
			<content:encoded><![CDATA[<p>So I came across this error for the first time today when trying to SSH directly into a clients VPS.</p>
<blockquote><p>login as: root<br />
root@server&#8217;s password:<br />
Server refused to allocate pty<br />
stdin: is not a tty</p></blockquote>
<p>After a quick google search I came across the fix.</p>
<blockquote><p>[root@node /]# vzlist -a<br />
VEID      NPROC STATUS  IP_ADDR         HOSTNAME<br />
1337         78 running 69.10.59.80     grumpy.thelinuxnoob.com<br />
[root@node /]# vzctl exec 1337 /sbin/MAKEDEV ptyp<br />
[root@node /]# vzctl exec 1337 /sbin/MAKEDEV tty<br />
[root@node /]# vzctl exec 1337 /sbin/MAKEDEV pty</p></blockquote>
<p>The issue should now be resolved and you can SSH into the VPS.</p>
]]></content:encoded>
			<wfw:commentRss>http://thelinuxnoob.com/linux/pty-ptyp-and-tty-errors/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Install Perl</title>
		<link>http://thelinuxnoob.com/linux/install-perl/</link>
		<comments>http://thelinuxnoob.com/linux/install-perl/#comments</comments>
		<pubDate>Thu, 22 Oct 2009 07:54:05 +0000</pubDate>
		<dc:creator>Clayton</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[SSH]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[perl]]></category>

		<guid isPermaLink="false">http://thelinuxnoob.com/?p=21</guid>
		<description><![CDATA[Very simple install, only 4 commands via SSH and takes about 20 minutes for the install to complete. wget http://layer1.cpanel.net/perl588installer.tar.gz tar -xvzf perl588installer.tar.gz cd perl588installer ./install]]></description>
			<content:encoded><![CDATA[<p>Very simple install, only 4 commands via SSH and takes about 20 minutes for the install to complete.</p>
<blockquote><p>wget http://layer1.cpanel.net/perl588installer.tar.gz<br />
tar -xvzf perl588installer.tar.gz<br />
cd perl588installer<br />
./install</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://thelinuxnoob.com/linux/install-perl/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Upgrade MySQL4 to MySQL5 on cPanel server</title>
		<link>http://thelinuxnoob.com/linux/upgrade-mysql4-to-mysql5-on-cpanel-server/</link>
		<comments>http://thelinuxnoob.com/linux/upgrade-mysql4-to-mysql5-on-cpanel-server/#comments</comments>
		<pubDate>Thu, 22 Oct 2009 03:22:01 +0000</pubDate>
		<dc:creator>Clayton</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[SSH]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[cPanel]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[WHM]]></category>

		<guid isPermaLink="false">http://thelinuxnoob.com/?p=18</guid>
		<description><![CDATA[Upgrading MySQL versions is a quick and easy process, not much work involved. Always be sure to make a backup before you start though, just in case the upgrade fails or some other unforeseen issue arises. cp -Rpf /var/lib/mysql /var/lib/mysql.BAK Login to WHM –&#62; Tweak Settings –&#62; MySQL -&#62; 5.0  and Save settings /scripts/mysqlup &#8211;force]]></description>
			<content:encoded><![CDATA[<p>Upgrading MySQL versions is a quick and easy process, not much work involved. Always be sure to make a backup before you start though, just in case the upgrade fails or some other unforeseen issue arises.</p>
<blockquote><p>cp -Rpf /var/lib/mysql /var/lib/mysql.BAK<br />
Login to WHM –&gt; Tweak Settings –&gt; MySQL -&gt; 5.0  and Save settings<br />
/scripts/mysqlup &#8211;force<br />
/scripts/perlinstaller &#8211;force Bundle::DBD::mysql<br />
/scripts/realperlinstaller &#8211;force DBD::mysql<br />
Recompile PHP</p></blockquote>
<p>You&#8217;re done <img src='http://thelinuxnoob.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://thelinuxnoob.com/linux/upgrade-mysql4-to-mysql5-on-cpanel-server/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Disable root SSH access</title>
		<link>http://thelinuxnoob.com/linux/disable-root-ssh-access/</link>
		<comments>http://thelinuxnoob.com/linux/disable-root-ssh-access/#comments</comments>
		<pubDate>Wed, 21 Oct 2009 02:38:05 +0000</pubDate>
		<dc:creator>Clayton</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[SSH]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[root]]></category>
		<category><![CDATA[su]]></category>

		<guid isPermaLink="false">http://69.10.59.80/~thelinux/?p=16</guid>
		<description><![CDATA[Allowing the root user to login directly is a major security issue, we’ll show you how to disable it so you can still login as root but just not directly, reducing the security issue. This will force a hacker to have to guess 2 seperate passwords to gain root access. (you do have 2 seperate]]></description>
			<content:encoded><![CDATA[<p>Allowing the root user to login directly is a major security issue, we’ll show you how to disable it so you can still login as root but just not directly, reducing the security issue.</p>
<p>This will force a hacker to have to guess 2 seperate passwords to gain root access.<br />
(you do have 2 seperate passwords for admin and root right?)<br />
What happens is you’ll first need to login as your <em>admin </em>user in <abbr title="Secure Shell">SSH</abbr>, then switch to the super user with the <em>su</em> command to get root.</p>
<p>We also will be forcing the use of <abbr title="Secure Shell">SSH</abbr> protocol 2, which is a newer, more secure <abbr title="Secure Shell">SSH</abbr> protocol<br />
Just a couple more ways to help your server stay safe from the bad guys. If you’re using cPanel make sure you add your admin user to the ‘<em>wheel</em>‘ group so that you will be able to ‘<em>su -</em>‘ to root, otherwise you may lock yourself out of root.</p>
<blockquote><p><strong>1.</strong> <abbr title="Secure Shell">SSH</abbr> into your server as ‘<em>admin</em>‘ and gain root access by <em>su</em></p>
<p><strong>2.</strong> Copy and paste this line to edit the file for <abbr title="Secure Shell">SSH</abbr> logins<br />
<em>pico -w /etc/<abbr title="Secure Shell">ssh</abbr>/sshd_config</em></p>
<p><em></em><strong>3.</strong> Find the line<br />
<em>Protocol 2, 1</em></p>
<p><strong>4.</strong> Uncomment it and change it to look like<br />
<em>Protocol 2</em></p>
<p><em></em><strong>5.</strong> Next, find the line<br />
<em>PermitRootLogin yes</em></p>
<p><em></em><strong>6.</strong> Uncomment it and make it look like <em>PermitRootLogin no</em></p>
<p><em></em><strong>7.</strong> Save the file <em>Ctrl+X</em> then <em>Y</em> then <em>enter</em></p>
<p><strong>8.</strong> Now you can restart <abbr title="Secure Shell">SSH</abbr><br />
<em>/etc/rc.d/init.d/sshd restart</em></p></blockquote>
<p><em></em>Now, no one will be able to login to root with out first loggin in as admin and ’su -’ to root, and you will be forcing the use of a more secure protocol. Just make sure you remember both passwords!</p>
]]></content:encoded>
			<wfw:commentRss>http://thelinuxnoob.com/linux/disable-root-ssh-access/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Screen in SSH</title>
		<link>http://thelinuxnoob.com/linux/screen-in-ssh/</link>
		<comments>http://thelinuxnoob.com/linux/screen-in-ssh/#comments</comments>
		<pubDate>Tue, 20 Oct 2009 02:37:07 +0000</pubDate>
		<dc:creator>Clayton</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[SSH]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[screen]]></category>

		<guid isPermaLink="false">http://69.10.59.80/~thelinux/?p=14</guid>
		<description><![CDATA[I’m short on time, but here’s a nice little tutorial on screen in SSH courtesy of Aperiodic.net. Getting in start a new screen session: screen .. with session name: screen -S &#60;name&#62; attach to a running session: screen -r .. to session with name: screen -r &#60;name&#62; the “ultimate attach”: screen -dRR (Attaches to a]]></description>
			<content:encoded><![CDATA[<p>I’m short on time, but here’s a nice little tutorial on screen in SSH courtesy of Aperiodic.net.</p>
<blockquote>
<h3><a id="getting_in" name="getting_in">Getting in</a></h3>
<div class="level3">
<p>start a new screen session: <code>screen</code><br />
.. with session name: <code>screen -S <em>&lt;name&gt;</em></code><br />
attach to a running session: <code>screen -r</code><br />
.. to session with name: <code>screen -r <em>&lt;name&gt;</em></code><br />
the “ultimate attach”: <code>screen -dRR</code> (Attaches to a screen session. If the session is attached elsewhere, detaches that other display. If no session exists, creates one. If multiple sessions exist, uses the first one.)</div>
<h3><a id="escape_key" name="escape_key">Escape key</a></h3>
<div class="level3">
<p>All screen commands are prefixed by an escape key, by default C-a (that’s Control-a, sometimes written ^A). To send a literal C-a to the programs in screen, use <code>C-a a</code>.</p>
<h3><a id="getting_out" name="getting_out">Getting out</a></h3>
<p>detach: <code>C-a d</code><br />
detach and logout (quick exit): <code>C-a D D</code><br />
exit screen: exit all of the programs in screen.<br />
force-exit screen: <code>C-a C-\</code> (<em>not</em> recommended)</div>
<h3><a id="help" name="help">Help</a></h3>
<div class="level3">
<p>See help: <code>C-a ?</code> (lists keybindings)</div>
<h3><a id="window_management" name="window_management">Window Management</a></h3>
<div class="level3">
<p>create new window: <code>C-a c</code><br />
change to last-visited active window: <code>C-a C-a</code> (commonly used to flip-flop between two windows)<br />
change to window by number: <code>C-a &lt;number&gt;</code> (only for windows 0 to 9)<br />
change to window by number or name: <code>C-a ' &lt;number or title&gt;</code><br />
change to next window in list: <code>C-a n</code> or <code>C-a &lt;space&gt;</code><br />
change to previous window in list: <code>C-a p</code><br />
see window list: <code>C-a ”</code> (allows you to select a window to change to)<br />
show window bar <code>C-a w</code> (if you don’t have window bar)<br />
close current window: Close all applications in the current window (including shell)<br />
kill current window: <code>C-a k</code> (not recommended)<br />
rename current window: <code>C-a A</code></div>
<h3><a id="split_screen" name="split_screen">Split screen</a></h3>
<div class="level3">
<p>split display: <code>C-a S</code><br />
jump to next display region: <code>C-a tab</code><br />
remove current region: <code>C-a X</code><br />
remove all regions but the current one: <code>C-a Q</code></div>
<h3><a id="misc" name="misc">Misc</a></h3>
<p>redraw window: <code>C-a C-l</code><br />
enter copy mode: <code>C-a [</code> (also used for viewing scrollback buffer)<br />
paste: <code>C-a ]</code><br />
monitor window for activity: <code>C-a M</code><br />
monitor window for silence: <code>C-a _</code><br />
enter digraph: <code>C-a C-v</code><br />
lock (password protect) display: <code>C-a x</code><br />
enter screen command: <code>C-a :</code></p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://thelinuxnoob.com/linux/screen-in-ssh/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
