<?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>Thesis: Hosting &#187; SSH</title>
	<atom:link href="http://www.thesishosting.com/topics/ssh/feed" rel="self" type="application/rss+xml" />
	<link>http://www.thesishosting.com</link>
	<description>Down &#38; Dirty Web Hosting Resource</description>
	<lastBuildDate>Mon, 21 Nov 2011 20:02:53 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Changing Directory Ownership via Command Line</title>
		<link>http://www.thesishosting.com/2010/04/topics/changing-directory-ownership-via-command-line</link>
		<comments>http://www.thesishosting.com/2010/04/topics/changing-directory-ownership-via-command-line#comments</comments>
		<pubDate>Fri, 16 Apr 2010 18:58:52 +0000</pubDate>
		<dc:creator>Dixie</dc:creator>
				<category><![CDATA[SSH]]></category>
		<category><![CDATA[Topics]]></category>
		<category><![CDATA[Web Hosting]]></category>
		<category><![CDATA[command line]]></category>
		<category><![CDATA[Errors]]></category>
		<category><![CDATA[FTP]]></category>
		<category><![CDATA[Troubleshooting]]></category>
		<category><![CDATA[webhosting]]></category>

		<guid isPermaLink="false">http://thesishosting.com/?p=418</guid>
		<description><![CDATA[Changing ownership via SSH command line of files and directories on Linux system]]></description>
			<content:encoded><![CDATA[<p><a class="post_image_link" href="http://www.thesishosting.com/2010/04/topics/changing-directory-ownership-via-command-line" title="Permanent link to Changing Directory Ownership via Command Line"><img class="post_image alignnone" src="http://farm3.static.flickr.com/2136/2180121182_75ce3a1c16.jpg" width="500" height="375" alt="chown command line linux *nix changing file directory group ownship recursive verbose" /></a>
</p><p><strong>Trying to replace, delete or change files via FTP, you may notice you get insufficient permissions errors. </strong>If you haven&#8217;t seen this a lot, your first instinct is to try to change the permissions on the directories in question, in which case you will continue to get mooned. This issue is less about permissions per se than about directory ownership. If you&#8217;re running on a server that has some directories owned by nobody/99, that means the server itself is considered &#8220;owner&#8221; and individual users won&#8217;t be able to change or delete these.<sup><a href="http://www.thesishosting.com/2010/04/topics/changing-directory-ownership-via-command-line#footnote_0_418" id="identifier_0_418" class="footnote-link footnote-identifier-link" title="If your server requires 777 permissions for certain functions, then you most likely will have some directories &amp;#8220;owned&amp;#8221; by the server/nobody.">1</a></sup></p>
<p>1</p>
<p>The username/groupname should be replaced with your info&#8211;but you don&#8217;t know this already, best to get out of there and get tech support to help you&#8211;and these two will normally be the same. The R makes it recursive, changing the files inside the directory as well as the directory you run the command on, and the v gives you verbose output so you can see what got changed.<span style="font-size: xx-small;color: #ccc"><br />
</span></p>
<ol class="footnotes"><li id="footnote_0_418" class="footnote">If your server requires 777 permissions for certain functions, then you most likely will have some directories &#8220;owned&#8221; by the server/nobody.</li></ol>]]></content:encoded>
			<wfw:commentRss>http://www.thesishosting.com/2010/04/topics/changing-directory-ownership-via-command-line/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Restarting dbus via Command Line</title>
		<link>http://www.thesishosting.com/2010/03/topics/ssh/restarting-dbus-via-command-line</link>
		<comments>http://www.thesishosting.com/2010/03/topics/ssh/restarting-dbus-via-command-line#comments</comments>
		<pubDate>Tue, 16 Mar 2010 21:33:15 +0000</pubDate>
		<dc:creator>Dixie</dc:creator>
				<category><![CDATA[SSH]]></category>
		<category><![CDATA[command line]]></category>
		<category><![CDATA[csf]]></category>
		<category><![CDATA[dbus]]></category>

		<guid isPermaLink="false">http://thesishosting.com/?p=366</guid>
		<description><![CDATA[Command to restart dbus via Command Line/SSH.]]></description>
			<content:encoded><![CDATA[<p><a class="post_image_link" href="http://www.thesishosting.com/2010/03/topics/ssh/restarting-dbus-via-command-line" title="Permanent link to Restarting dbus via Command Line"><img class="post_image alignnone" src="http://farm1.static.flickr.com/71/157842673_3c9cd04908.jpg" width="500" height="333" alt="Restarting dbus from SSH Command Line Shell" /></a>
</p><p>As a companion to our &#8220;<a title="Restarting Haldaemon from Command Line SSH" href="http://thesishosting.com/topics/ssh/restarting-haldaemon-from-the-command-line">Restarting Haldaemon from the Command Line</a>&#8221; piece (coming in handy after software update where you get those annoying <a title="CSF Config Server Firewall" href="http://configserver.com/cp/csf.html">ConfigServer firewall</a> warnings &#8220;Suspicious process running under user dbus&#8221;), here&#8217;s what you need to do to restart dbus from the command line:</p>
<p>1</p>
<p>Note: Your server configuration may vary.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.thesishosting.com/2010/03/topics/ssh/restarting-dbus-via-command-line/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Transferring Databases via SSH Command Line</title>
		<link>http://www.thesishosting.com/2010/02/topics/ssh/transferring-databases-via-ssh-command-line</link>
		<comments>http://www.thesishosting.com/2010/02/topics/ssh/transferring-databases-via-ssh-command-line#comments</comments>
		<pubDate>Sat, 13 Feb 2010 20:23:00 +0000</pubDate>
		<dc:creator>Dixie</dc:creator>
				<category><![CDATA[SSH]]></category>
		<category><![CDATA[command line]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[mysql]]></category>

		<guid isPermaLink="false">http://thesishosting.com/?p=311</guid>
		<description><![CDATA[SSH commands for moving a database from one server to another.]]></description>
			<content:encoded><![CDATA[<p><a class="post_image_link" href="http://www.thesishosting.com/2010/02/topics/ssh/transferring-databases-via-ssh-command-line" title="Permanent link to Transferring Databases via SSH Command Line"><img class="post_image alignnone" src="http://farm1.static.flickr.com/53/140747995_b3102758d1.jpg" width="500" height="390" alt="Post image for Transferring Databases via SSH Command Line" /></a>
</p><p><a title="SSH Command Line Database Transfer" href="http://www.commandlinefu.com/commands/view/887/copy-a-mysql-database-to-a-new-server-via-ssh-with-one-command">Command Line Fu has a solution</a> for those who have SSH access and need to move a database:</p>
<p>To create a <strong>new database with a different name</strong>:</p>
<pre class="brush: sql; title: ; notranslate">ssh -C user@newhost &quot;mysql -uUSER -pPASS -e 'create database NEW_DB_NAME;'&quot; &amp;&amp; mysqldump --force --log-error=mysql_error.log -uUSER -pPASS OLD_DB_NAME | ssh -C user@remotehost &quot;mysql -uUSER -pPASS NEW_DB_NAME&quot;</pre>
<p>To<strong> use the same database name for target as the source</strong>:</p>
<pre class="brush: sql; title: ; notranslate">mysqldump --databases --force --log-error=/root/mysql_error.log -uUSER -pPASS OLD_DB_NAME | ssh -C user@newhost &quot;mysql -uUSER -pPASS&quot;</pre>
<p class="alert">If you&#8217;re using SSH on a non-standard port (recommended), you&#8217;ll need to add a parameter for it in your code after the ssh command, such as -p XXX, where &#8220;XXX&#8221; is replaced by your port number.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.thesishosting.com/2010/02/topics/ssh/transferring-databases-via-ssh-command-line/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Restarting Haldaemon from the Command Line</title>
		<link>http://www.thesishosting.com/2010/01/topics/ssh/restarting-haldaemon-from-the-command-line</link>
		<comments>http://www.thesishosting.com/2010/01/topics/ssh/restarting-haldaemon-from-the-command-line#comments</comments>
		<pubDate>Sun, 03 Jan 2010 19:01:39 +0000</pubDate>
		<dc:creator>Dixie</dc:creator>
				<category><![CDATA[SSH]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[command line]]></category>
		<category><![CDATA[csf]]></category>
		<category><![CDATA[shell]]></category>

		<guid isPermaLink="false">http://thesishosting.dixiblog.com/?p=248</guid>
		<description><![CDATA[After a software update, the CSF firewall may send warnings the file system is running an executable that's been deleted. Command line instructions for restarting haldaemon.]]></description>
			<content:encoded><![CDATA[<p><a class="post_image_link" href="http://www.thesishosting.com/2010/01/topics/ssh/restarting-haldaemon-from-the-command-line" title="Permanent link to Restarting Haldaemon from the Command Line"><img class="post_image alignnone" src="http://farm1.static.flickr.com/23/35177189_936539c0ba.jpg" width="500" height="355" alt="Restart Services after Software Update CSF " /></a>
</p><p>Have a need to restart <a title="Definition Hal Daemon" href="http://en.wikipedia.org/wiki/HAL_%28software%29">Haldaemon</a>? I did, p0inted out from the ConfigServer Firewall (CSF) error report:</p>
<blockquote><p>The file system shows this process is running an executable file that has been deleted. This typically happens when the original file has been replaced by a new file when the application is updated. To prevent this being reported again, restart the process that runs this excecutable file. See csf.conf and the PT_DELETED text for more information about the security implications of processes running deleted executable files.</p></blockquote>
<p>From command line prompt:<strong> /etc/init.d/haldaemon restart</strong></p>
<p>At least, that&#8217;s where it was on my system.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.thesishosting.com/2010/01/topics/ssh/restarting-haldaemon-from-the-command-line/feed</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Enabling Secure FTP for User via SSH</title>
		<link>http://www.thesishosting.com/2009/10/topics/ssh/enabling-secure-ftp-for-user-via-ssh</link>
		<comments>http://www.thesishosting.com/2009/10/topics/ssh/enabling-secure-ftp-for-user-via-ssh#comments</comments>
		<pubDate>Thu, 22 Oct 2009 17:03:18 +0000</pubDate>
		<dc:creator>Dixie</dc:creator>
				<category><![CDATA[SSH]]></category>
		<category><![CDATA[security]]></category>
		<category><![CDATA[SFTP]]></category>
		<category><![CDATA[shell]]></category>

		<guid isPermaLink="false">http://thesishosting.com/?p=103</guid>
		<description><![CDATA[How to Enabe Secure FTP (SFTP) via Command Line]]></description>
			<content:encoded><![CDATA[<p><a class="post_image_link" href="http://www.thesishosting.com/2009/10/topics/ssh/enabling-secure-ftp-for-user-via-ssh" title="Permanent link to Enabling Secure FTP for User via SSH"><img class="post_image alignnone" src="http://farm4.static.flickr.com/3428/3361448086_6c4112162a.jpg" width="500" height="333" alt="enabling sftp via ssh command line putty" /></a>
</p><p>Enabling Secure FTP for user via Command Line (<a title="enable SFTP" href="http://forums.hostgator.com/s-ftp-yes-ssh-no-t53200.html">from Hostgator forums</a>):</p>
<blockquote><p>chsh -s /usr/libexec/openssh/sftp-server &lt;username&gt;</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.thesishosting.com/2009/10/topics/ssh/enabling-secure-ftp-for-user-via-ssh/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Putty: Setting up SSH Keys to New Server</title>
		<link>http://www.thesishosting.com/2009/10/topics/ssh/putty-setting-up-ssh-keys-to-new-server</link>
		<comments>http://www.thesishosting.com/2009/10/topics/ssh/putty-setting-up-ssh-keys-to-new-server#comments</comments>
		<pubDate>Sat, 17 Oct 2009 02:17:07 +0000</pubDate>
		<dc:creator>Dixie</dc:creator>
				<category><![CDATA[SSH]]></category>
		<category><![CDATA[putty]]></category>
		<category><![CDATA[rsa keys]]></category>
		<category><![CDATA[security]]></category>
		<category><![CDATA[WHM/cPanel]]></category>

		<guid isPermaLink="false">http://thesishosting.com/?p=29</guid>
		<description><![CDATA[Quick instructions for using Putty Keygen to generate Public/Private RSA Keypair, installing via WHM, for secure SSH server access.]]></description>
			<content:encoded><![CDATA[<p><a class="post_image_link" href="http://www.thesishosting.com/2009/10/topics/ssh/putty-setting-up-ssh-keys-to-new-server" title="Permanent link to Putty: Setting up SSH Keys to New Server"><img class="post_image alignnone" src="http://thesishosting.dixiblog.com/files/2009/10/putty-ssh-key-auth-1.png" width="483" height="467" alt="Putty SSH Keygen" /></a>
</p><p>When setting up a new server, you&#8217;ll want to set up your SSH Keys so you can remotely access without having to type in root password. Info for using putty, the simple, lightweight, open source SSH client.</p>
<p><a title="Putty SSH Software Download" href="http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html"><strong>Download Putty</strong> and the keygen tool here </a>| <strong><a title="Putty FAQ Keygen" href="http://the.earth.li/~sgtatham/putty/0.58/htmldoc/Chapter8.html#pubkey-puttygen">Instructions for generating keys  here</a></strong></p>
<ol>
<li><strong>Use Putty Keygen to create a public/private key pair and save locally</strong>. Make sure you use RSA keys, SSH2, and DO save a passphrase.</li>
<li>Log into WHM -&gt; Security -&gt; Manage SSH Keys -&gt; Import Key</li>
<li>Paste Public and Private Key Pair into boxes provided. Add your pass-phrase and import.</li>
<li>Make sure putty is set to use your private key, and connect to your server. (See image below)</li>
<li>Log in as Root and use passphrase, which will be required to log in.</li>
</ol>
<div id="attachment_30" class="wp-caption alignnone" style="width: 456px">
	<a href="http://th1.s3.amazonaws.com/files/2009/10/putty-keys_add1.png?cda6c1"><img class="size-full wp-image-30" title="putty add keys" src="http://th1.s3.amazonaws.com/files/2009/10/putty-keys_add1.png?cda6c1" alt="putty add keys" width="456" height="435" /></a>
	<p class="wp-caption-text">Browse to your private key &amp; save this connection</p>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.thesishosting.com/2009/10/topics/ssh/putty-setting-up-ssh-keys-to-new-server/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

<!-- Served from: www.thesishosting.com @ 2012-02-06 23:42:03 by W3 Total Cache -->
