<?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>MyFunnyDev &#187; bash</title>
	<atom:link href="http://michalkuklis.com/blog/tag/bash/feed/" rel="self" type="application/rss+xml" />
	<link>http://michalkuklis.com/blog</link>
	<description></description>
	<lastBuildDate>Sat, 14 Jan 2012 17:45:50 +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>ssh without a hostname and password</title>
		<link>http://michalkuklis.com/blog/2011/06/15/ssh-without-host-and-password/</link>
		<comments>http://michalkuklis.com/blog/2011/06/15/ssh-without-host-and-password/#comments</comments>
		<pubDate>Wed, 15 Jun 2011 20:15:37 +0000</pubDate>
		<dc:creator>Michał Kuklis</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[ssh]]></category>

		<guid isPermaLink="false">http://michalkuklis.com/blog/?p=431</guid>
		<description><![CDATA[Often I have to login to different machines. It&#8217;s annoying to always type the full hostname and then password. So here is what you can do to avoid typing too much: 1. On your local machine create a private and public key: ssh-keygen -t rsa by default 2 keys will be created (id_rsa, id_rsa.pub) under [...]]]></description>
			<content:encoded><![CDATA[<p>Often I have to login to different machines. It&#8217;s annoying to always type the full hostname and then password. So here is what you can do to avoid typing too much:</p>
<p>1. On your local machine create a private and public key:</p>
<div class="codecolorer-container bash blackboard" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #c20cb9; font-weight: bold;">ssh-keygen</span> <span style="color: #660033;">-t</span> rsa</div></div>
<p>by default 2 keys will be created (<strong>id_rsa, id_rsa.pub</strong>) under <strong>~/.ssh</strong></p>
<p>2. Create <strong>config</strong> file under <strong>~/.ssh</strong></p>
<div class="codecolorer-container bash blackboard" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #c20cb9; font-weight: bold;">touch</span> ~<span style="color: #000000; font-weight: bold;">/</span>.ssh<span style="color: #000000; font-weight: bold;">/</span>config</div></div>
<p>3. Add your connection information to config file:</p>
<div class="codecolorer-container bash blackboard" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">Host HOST_ALIAS <span style="color: #666666; font-style: italic;"># can be anything you want</span><br />
Hostname HOST_NAME <span style="color: #666666; font-style: italic;"># example.com</span><br />
User USERNAME<br />
port PORT</div></div>
<p>4. Create .ssh folder on the remote machine from your local machine (you will be prompted for the password):</p>
<div class="codecolorer-container bash blackboard" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #c20cb9; font-weight: bold;">ssh</span> HOST_ALIAS <span style="color: #c20cb9; font-weight: bold;">mkdir</span> <span style="color: #660033;">-p</span> .ssh</div></div>
<p>5. Finally append your new public key <strong>id_rsa.pub</strong> to <strong>~/.ssh/authorized_keys</strong> on your remote machine (you will be prompted for the password one last time):</p>
<div class="codecolorer-container bash blackboard" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #c20cb9; font-weight: bold;">cat</span> ~<span style="color: #000000; font-weight: bold;">/</span>.ssh<span style="color: #000000; font-weight: bold;">/</span>id_rsa.pub <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">ssh</span> HOST_ALIAS <span style="color: #ff0000;">'cat &gt;&gt; .ssh/authorized_keys'</span></div></div>
<p>That&#8217;s all! Now every time you want to login to your remote machine you can type:</p>
<div class="codecolorer-container bash blackboard" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #c20cb9; font-weight: bold;">ssh</span> HOST_ALIAS</div></div>
<p>and you should be able to get in.</p>
]]></content:encoded>
			<wfw:commentRss>http://michalkuklis.com/blog/2011/06/15/ssh-without-host-and-password/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>how to remove .svn from all folders &#8211; command line</title>
		<link>http://michalkuklis.com/blog/2008/10/15/how-to-remove-svn-from-all-folders-command-line/</link>
		<comments>http://michalkuklis.com/blog/2008/10/15/how-to-remove-svn-from-all-folders-command-line/#comments</comments>
		<pubDate>Thu, 16 Oct 2008 03:20:33 +0000</pubDate>
		<dc:creator>Michał Kuklis</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[bash]]></category>

		<guid isPermaLink="false">http://michalkuklis.com/blog/?p=39</guid>
		<description><![CDATA[find . -name &#34;.svn&#34; -exec rm -rf '{}' \;]]></description>
			<content:encoded><![CDATA[
<div class="wp_syntax"><div class="code"><pre class="bash"><span class="kw2">find</span> . <span class="re5">-name</span> <span class="st0">&quot;.svn&quot;</span> <span class="re5">-exec</span> <span class="kw2">rm</span> <span class="re5">-rf</span> <span class="st_h">'{}'</span> \;</pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://michalkuklis.com/blog/2008/10/15/how-to-remove-svn-from-all-folders-command-line/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

