<?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>Cain Manor &#187; Online</title>
	<atom:link href="http://cainmanor.com/category/tech/online/feed" rel="self" type="application/rss+xml" />
	<link>http://cainmanor.com</link>
	<description>Your Guide To All Things Cain™</description>
	<lastBuildDate>Wed, 08 Sep 2010 19:25:39 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Why my iPad doesn&#8217;t have 3G</title>
		<link>http://cainmanor.com/interesting/why-my-ipad-doesnt-have-3g</link>
		<comments>http://cainmanor.com/interesting/why-my-ipad-doesnt-have-3g#comments</comments>
		<pubDate>Mon, 22 Mar 2010 16:23:34 +0000</pubDate>
		<dc:creator>Greg Cain</dc:creator>
				<category><![CDATA[Interesting]]></category>
		<category><![CDATA[Online]]></category>
		<category><![CDATA[Personal]]></category>
		<category><![CDATA[AT&T]]></category>
		<category><![CDATA[ipad]]></category>
		<category><![CDATA[iphone]]></category>
		<guid isPermaLink="false">http://cainmanor.com/?p=775</guid>
		<description><![CDATA[This is a speed test from my iPhone, done in the 98121 area code. It&#8217;s as close as you can get to Downtown Seattle without being in Downtown Seattle. To be clear, I pay a lot of money for this service.]]></description>
			<content:encoded><![CDATA[<p>This is a speed test from my iPhone, done in the 98121 area code.  It&#8217;s as close as you can get to Downtown Seattle without being in Downtown Seattle.   To be clear, I pay a lot of money for this service.</p>
<p><a href="http://photos.cainmanor.com/2010/03/3GS-speed-test.jpg"><img class="alignnone size-medium wp-image-776" title="3GS speed test" src="http://photos.cainmanor.com/2010/03/3GS-speed-test-200x300.jpg" alt="" width="200" height="300" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://cainmanor.com/interesting/why-my-ipad-doesnt-have-3g/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Using jQuery from Google</title>
		<link>http://cainmanor.com/tech/unix/using-jquery-from-google</link>
		<comments>http://cainmanor.com/tech/unix/using-jquery-from-google#comments</comments>
		<pubDate>Thu, 18 Mar 2010 15:54:07 +0000</pubDate>
		<dc:creator>Greg Cain</dc:creator>
				<category><![CDATA[Online]]></category>
		<category><![CDATA[UNIX]]></category>
		<category><![CDATA[wordpress]]></category>
		<guid isPermaLink="false">http://cainmanor.com/?p=770</guid>
		<description><![CDATA[One of the largest items to load for a wordpress blog is jQuery. Google currently host most jQuery libraries on their site for public consumption. This appealed to me because Google is very, very fast, whereas my site is pretty fast, but not Google fast. I tried various plugins to do this, but none of [...]]]></description>
			<content:encoded><![CDATA[<p>One of the largest items to load for a wordpress blog is jQuery.  Google currently host most jQuery libraries on their site for public consumption.  This appealed to me because Google is very, very fast, whereas my site is pretty fast, but not Google fast.</p>
<p>I tried various plugins to do this, but none of them worked.  I found <a href="http://themocracy.com/2010/02/using-google-code-libraries-with-wordpress/">this site</a>, which shows how to make the change by hand.<br />
<span id="more-770"></span><br />
This is my original function.php from my theme</p>
<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span>
<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span> <span style="color: #990000;">function_exists</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'register_sidebar'</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span>
    register_sidebar<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
add_filter<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'comments_template'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'legacy_comments'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">function</span> legacy_comments<span style="color: #009900;">&#40;</span><span style="color: #000088;">$file</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
	<span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #339933;">!</span><span style="color: #990000;">function_exists</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'wp_list_comments'</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> 	<span style="color: #000088;">$file</span> <span style="color: #339933;">=</span> TEMPLATEPATH <span style="color: #339933;">.</span> <span style="color: #0000ff;">'/legacy.comments.php'</span><span style="color: #339933;">;</span>
	<span style="color: #b1b100;">return</span> <span style="color: #000088;">$file</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></div>
<p>To get it to work, you need to insert this code after &#8220;register sidebar&#8221; and before &#8220;add filter.&#8221;  You can use whatever version is available on the site.  I used 1.3.2 because it was the one specified in my theme and it was smaller than the 1.4 versions.</p>
<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span>is_admin<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #b1b100;">return</span><span style="color: #339933;">;</span>
&nbsp;
wp_deregister_script<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'jquery'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
wp_register_script<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'jquery'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
wp_enqueue_script<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'jquery'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span></pre></div></div>
]]></content:encoded>
			<wfw:commentRss>http://cainmanor.com/tech/unix/using-jquery-from-google/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Record encrypted cable channels using your Mac</title>
		<link>http://cainmanor.com/personal/record-encrypted-cable-channels-using-your-mac</link>
		<comments>http://cainmanor.com/personal/record-encrypted-cable-channels-using-your-mac#comments</comments>
		<pubDate>Tue, 02 Mar 2010 17:08:32 +0000</pubDate>
		<dc:creator>Greg Cain</dc:creator>
				<category><![CDATA[OS-X]]></category>
		<category><![CDATA[Online]]></category>
		<category><![CDATA[Personal]]></category>
		<category><![CDATA[Tech]]></category>
		<guid isPermaLink="false">http://cainmanor.com/?p=742</guid>
		<description><![CDATA[In Seattle, Comcast has been moving most of the channels from unencrypted QAM to encrypted QAM. That means that things I used to be able to record with my EyeTV and HD Homerun setup no longer work. I&#8217;ve heard rumors that you could install the Apple firewire SDK and record using the FireWire output of [...]]]></description>
			<content:encoded><![CDATA[<p>In Seattle, Comcast has been moving most of the channels from unencrypted QAM to encrypted QAM.  That means that things I used to be able to record with my EyeTV and HD Homerun setup no longer work.  I&#8217;ve heard rumors that you could install the Apple firewire SDK and record using the FireWire output of your cable box, but that seemed like a lot of work, and not very well supported.</p>
<p>Enter <a href="http://www.ammesset.com/firerecord">FireRecord.</a> It makes it much simpler, but with caveats.  To use it&#8230;</p>
<ol>
<li>Plug a firewire cable between your Mac (I use an older, slow Intel Mac Mini hooked into a QNAP Nas for storage) and your cable box.  This is designed for most standard cable boxes &#8211; the FireRecord site has more information on supported boxes.</li>
<li><a href="http://www.ammesset.com/firerecord">Download</a> and install FireRecord.</li>
<li>Run the program, pick a channel and set the start and end time.</li>
<li>Once the recording is done, you have a large file with a .m2t extension.  You need to massage it before it very usable.</li>
<li>Download <a href="http://www.squared5.com/svideo/mpeg-streamclip-mac.html" target="_blank">MPEG Streamclip</a>.  There are other solutions for the Mac, but they cost quite a bit more.  I&#8217;ve not found a free solution.</li>
<li>You need to install the QuickTimeMPEG2.component, which you have to purchase from <a title="Purchase QuickTime MPEG-2 Playback Component" href="http://www.apple.com/quicktime/mpeg2/" target="_blank">Apple</a> (~ $20/US.)  When I ran the install program it said that I needed to install Rosetta for the program to run.  Rather than do that, you can drill down into the package and find the file.  It lives in the package as Archive.pax.gz.   If you copy that file to your desktop, you can uncompress it by double clicking the file.   Once you&#8217;ve got the resulting QuickTimeMPEG2.component file, just copy it to /System/Library/QuickTime (you&#8217;ll need to authenticate before copying it over.)</li>
<li>Now you can use MPEG Streamclip to export the video to other formats.</li>
</ol>
<p>That&#8217;s it.  It&#8217;s crazy easy.</p>
<p>There are caveats</p>
<ol>
<li>You don&#8217;t get a guide.  You need to know what channel and what time your program is.</li>
<li>You can&#8217;t watch anything else while recording. The firewire port spits out what&#8217;s on your television. The flip side is that anything you can watch on TV you can record, even premium channels (not tested yet.)</li>
<li>The resulting file is only tagged with the file name you gave it (i.e. Discover.m2t.) No fancy file tagging like you get with EyeTV, but a pass through MetaX can fix that.</li>
<li>(NEW) Apparently you can&#8217;t turn off your cable box or your Mac will have trouble finding the device when you power it back on.</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://cainmanor.com/personal/record-encrypted-cable-channels-using-your-mac/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>A brief listing of the movies available at Cain Manor</title>
		<link>http://cainmanor.com/personal/a-brief-listing-of-the-movies-available-at-cain-manor</link>
		<comments>http://cainmanor.com/personal/a-brief-listing-of-the-movies-available-at-cain-manor#comments</comments>
		<pubDate>Fri, 19 Feb 2010 22:21:08 +0000</pubDate>
		<dc:creator>Greg Cain</dc:creator>
				<category><![CDATA[Online]]></category>
		<category><![CDATA[Personal]]></category>
		<category><![CDATA[Tech]]></category>
		<guid isPermaLink="false">http://cainmanor.com/?p=732</guid>
		<description><![CDATA[Done for my convenience and that of my friends. Updated June 29, 2010 25th Hour 28 Days Later 28 Weeks Later 300 310 To Yuma 400 Blows 47 Ronin 7 Samurai 7 Up A Home at the End of the World Ace Ventura, Pet Detective Aguirre, The Wrath Of God Alexander Nevsky Along Came a Spider [...]]]></description>
			<content:encoded><![CDATA[<p>Done for my convenience and that of my friends.</p>
<p>Updated June 29, 2010</p>
<p><span id="more-732"></span> 25th Hour<br />
28 Days Later<br />
28 Weeks Later<br />
300<br />
310 To Yuma<br />
400 Blows<br />
47 Ronin<br />
7 Samurai<br />
7 Up<br />
A Home at the End of the World<br />
Ace Ventura, Pet Detective<br />
Aguirre, The Wrath Of God<br />
Alexander Nevsky<br />
Along Came a Spider<br />
American Flyers<br />
American Gangster<br />
American Splendor<br />
An Inconvenient Truth<br />
Angels &amp; Demons<br />
Anvil<br />
Apocalypto<br />
As Far as My Feet Will Carry Me<br />
Be Kind Rewind<br />
Becoming Jane<br />
Bee Movie<br />
Being There<br />
Black Narcissus<br />
Black Orpheus<br />
Blade Runner &#8211; The Final Cut<br />
Blades Of Glory<br />
Bonnie and Clyde<br />
Boogie Nights<br />
Borat &#8211; Cultural Learnings of America for Make Benefit Glorious Nation of Kazakhstan<br />
Breaking Away<br />
Breathless<br />
Burn After Reading<br />
Bus 174<br />
Casino Royale (1967)<br />
Casino Royale<br />
Cats And Dogs<br />
Charlie Wilsons War<br />
Children of Men<br />
Cinderella Man<br />
City of Ember<br />
Cloverfield<br />
Conan The Barbarian<br />
Coraline<br />
Crimes and Misdemeanors<br />
Dark City<br />
Darkon<br />
Das Boot &#8211; Part 1<br />
Das Boot &#8211; Part 2<br />
Dazed and Confused<br />
Death at a Funeral<br />
Delicatessen<br />
District 9<br />
Dog Day Afternoon<br />
Doubt<br />
Dr<br />
Drugstore Cowboy<br />
Eagle vs Shark<br />
Eight and a Half<br />
Emperors New Groove<br />
Employee of the Month<br />
Enlightenment Guaranteed<br />
Eternal Sunshine of the Spotless Mind<br />
Excalibur<br />
Fahrenheit 451<br />
Fanny &amp; Alexander<br />
Fantastic Mr<br />
Favela Rising<br />
Fight Club<br />
Food, Inc<br />
Frida<br />
Get Shorty<br />
Godzilla, King of the Monsters<br />
Goodbye Lenin<br />
Gran Torino<br />
Grey Gardens<br />
Grindhouse Presents &#8211; Quentin Tarantino&#8217;s Death Proof<br />
Grizzly Man<br />
Harold &amp; Kumar Escape from Guantanamo Bay<br />
Harry Potter and the Chamber of Secrets<br />
Harry Potter and the Prisoner of Azkaban<br />
Harry Shearer &#8211; Now You See It<br />
Help<br />
Hot Fuzz<br />
House of Sand<br />
Howls Moving Castle<br />
Hulk<br />
I Am Legend<br />
I Am Trying to Break Your Heart<br />
I Robot<br />
Idiocracy<br />
Ikiru (To Live)<br />
In Bruges<br />
Indiana Jones and the Kingdom of the Crystal Skull<br />
Indiana Jones and the Last Crusade<br />
Indiana Jones and the Temple of Doom<br />
Inglourious Basterds<br />
Intermission<br />
Into The Wild<br />
Iron Man<br />
Jet Li&#8217;s Fearless<br />
Jindabyne<br />
Jules and Jim<br />
Julie and Julia<br />
Juno<br />
Kiss Kiss Bang Bang<br />
Knocked Up<br />
Koyaanisqatsi<br />
Kung Fu Hustle<br />
La Dolce Vita<br />
La Strada<br />
Lars And The Real Girl<br />
Layer Cake<br />
Leap Year<br />
Let The Right One In<br />
Little Children<br />
Little Miss Sunshine<br />
Logan&#8217;s Run<br />
Lord of the Rings<br />
Los cronocrímenes (Timecrimes)<br />
March of the Penguins<br />
Match Point<br />
Michael Clayton<br />
Minority Report<br />
Miss Pettigrew Lives for a Day<br />
Monsters, Inc<br />
Monty Python and the Holy Grail<br />
Monty Python&#8217;s The Meaning of Life<br />
Mr And Mrs Smith<br />
Munich<br />
Nacho Libre<br />
New Moon<br />
Nick and Norah&#8217;s Infinite Playlist<br />
Night Of The Hunter<br />
Night at the Museum: Battle of the Smithsonian<br />
Nights of Cabiria<br />
No Country for Old Men<br />
North By Northwest<br />
October Sky<br />
Old Boy<br />
Overlord<br />
Pans Labyrinth<br />
Persepolis<br />
Picnic at Hanging Rock<br />
Pink Floyd The Wall<br />
Pirates of the Caribbean: At World&#8217;s End<br />
Platoon<br />
Powaqqatsi<br />
Public Enemies<br />
Quantum of Solace<br />
Rabbit Proof Fence<br />
Race to Witch Mountain<br />
Raiders of the Lost Ark<br />
Rashomon<br />
Ratatouille<br />
Religulous<br />
Repo Man<br />
Reservoir Dogs<br />
Riding Giants<br />
Robot Chicken &#8211; Star Wars<br />
Rocky<br />
Run Lola Run<br />
Rush Hour 3<br />
Rushmore<br />
Sense and Sensibility<br />
Sexy Beast<br />
Shaolin Soccer<br />
Shaun of the Dead<br />
Shoot The Piano Player<br />
Shopgirl<br />
Sid &amp; Nancy<br />
Sideways<br />
Sin City<br />
Sita Sings The Blues<br />
Slumdog Millionaire<br />
Some Like It Hot<br />
Spartan<br />
Spring, Summer, Fall, Winter<br />
Star Trek<br />
Star Wars: Episode I &#8211; The Phantom Menace<br />
Star Wars: Episode II &#8211; Attack of the Clones<br />
Star Wars: Episode III &#8211; Revenge of the Sith<br />
Star Wars: Episode IV &#8211; A New Hope<br />
Star Wars: Episode V &#8211; The Empire Strikes Back<br />
Star Wars: Episode VI &#8211; Return of the Jedi<br />
Star Wars: The Clone Wars<br />
Stardust<br />
Step Brothers<br />
Sunshine Cleaning<br />
Sweeney Todd: The Demon Barber of Fleet Street<br />
Syriana<br />
Terminator 2: Judgment Day<br />
Thank You for Smoking<br />
The Beales of Grey Gardens<br />
The Beast With A Billion Backs<br />
The Big Lebowski<br />
The Brothers Bloom<br />
The Bucket List<br />
The Constant Gardener<br />
The Corporation<br />
The Curious Case of Benjamin Button<br />
The Curse Of The Were-Rabbit<br />
The Da Vinci Code<br />
The Darjeeling Limited<br />
The Day of the Jackal<br />
The Fabulous Destiny of Amelie Poulain<br />
The Fall<br />
The Fast Runner<br />
The Fifth Element<br />
The Forbidden Kingdom<br />
The Girlfriend Experience<br />
The Godfather<br />
The Godfather: Part II<br />
The Godfather: Part III<br />
The Hangover<br />
The Hurt Locker<br />
The Incredible Hulk<br />
The Informant<br />
The Italian Job<br />
The Last Days of Disco<br />
The Last Man on Earth<br />
The Life Aquatic<br />
The Lookout<br />
The Motorcycle Diaries<br />
The Mummy Returns<br />
The Neverending Story II<br />
The Night Of The Iguana<br />
The Omega Man<br />
The Painted Veil<br />
The Proposition<br />
The Quiet Man<br />
The Rage of Placid Lake<br />
The Reader<br />
The Rookie<br />
The Royal Tenenbaums<br />
The Signal<br />
The Simpsons Movie<br />
The Squid And The Whale<br />
The Station Agent<br />
The Tale of Despereaux<br />
The Triplets of Belleville<br />
The Wicker Man<br />
The Wrestler<br />
There Will Be Blood<br />
Tokyo Drifter<br />
Total Recall<br />
Trailer Park Boys &#8211; Countdown To Liquor Day<br />
Transformers<br />
Tropic Thunder<br />
Tsotsi<br />
Tulpan<br />
Twilight<br />
Two English Girls<br />
Tyson<br />
Unforgiven<br />
Up<br />
V for Vendetta<br />
Vengeance Is Mine<br />
WALL-E<br />
Waiting for Guffman<br />
Waitress<br />
Walk The Line<br />
Waltz with Bashir<br />
Watchmen<br />
Whale Rider<br />
Where the Wild Things Are<br />
White Sun Of The Desert<br />
Wild at Heart<br />
Willow<br />
Worlds Fastest Indian<br />
X Files &#8211; I Want To Believe<br />
X-Men Origins Wolverine<br />
Y tu mamá también<br />
Zack and Miri<br />
Zombieland<br />
Zoolander</p>
<p>I also have some of the following TV shows, some complete, most are not&#8230;</p>
<p>American Experience<br />
Animatrix<br />
Art Wolfe<br />
Austin City Limits<br />
Australia<br />
Battlefield Britain<br />
Black Adder<br />
Chef!<br />
Curb Your Enthusiasm<br />
Family Guy<br />
Firefly<br />
Flight of the Conchords<br />
Frontline<br />
Globe Trekker<br />
Guns, Germs and Steel<br />
Independent Lens<br />
It&#8217;s Always Sunny In Philadelphia<br />
Jeeves and Wooster<br />
John Adams<br />
Johnny Cash<br />
Kids in the Hall<br />
Long Way Round<br />
MythBusters<br />
Nature<br />
Network Trash Folder<br />
No Reservations<br />
Nova<br />
Passport to Adventure<br />
Planet Earth<br />
Richard Bangs&#8217; Adventures with Purpose<br />
Rudy Maxa&#8217;s World<br />
Sarah Silverman<br />
Star Trek &#8211; The Next Generation<br />
The Desert Speaks<br />
The IT Crowd<br />
The Sopranos<br />
Trailer Park Boys</p>
]]></content:encoded>
			<wfw:commentRss>http://cainmanor.com/personal/a-brief-listing-of-the-movies-available-at-cain-manor/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SSH Public and Private Key setup on OS-X</title>
		<link>http://cainmanor.com/tech/ssh-public-and-private-key-setup-on-os-x</link>
		<comments>http://cainmanor.com/tech/ssh-public-and-private-key-setup-on-os-x#comments</comments>
		<pubDate>Thu, 05 Feb 2009 05:39:15 +0000</pubDate>
		<dc:creator>Greg Cain</dc:creator>
				<category><![CDATA[OS-X]]></category>
		<category><![CDATA[Online]]></category>
		<category><![CDATA[Tech]]></category>
		<category><![CDATA[UNIX]]></category>
		<category><![CDATA[Work]]></category>
		<guid isPermaLink="false">http://cainmanor.com/tech/ssh-public-and-private-key-setup-on-os-x</guid>
		<description><![CDATA[I didn&#8217;t find one clear and concise place explaining how to setup private keys on OS-X. This is my attempt to remedy that. First, you need to generate the Private (id_dsa or id_rsa) and Public (id_dsa.pub or id_rsa.pub) Key pair. Properly secured machines don&#8217;t accept RSA encryption (rsa1) which was used by SSH v1 protocol, [...]]]></description>
			<content:encoded><![CDATA[<p>I didn&#8217;t find one clear and concise place explaining how to setup private keys on OS-X.  This is my attempt to remedy that.<br />
<span id="more-479"></span><br />
First, you need to generate the Private (id_dsa or id_rsa) and Public (id_dsa.pub or id_rsa.pub) Key pair.  Properly secured machines don&#8217;t accept RSA encryption (rsa1) which was used by SSH v1 protocol, but they do accept RSA v2 and DSA, with DSA being arguably more secure.  For the -t option use either rsa or dsa, with dsa being preffered.  The rest of this article assumes you&#8217;re using dsa.  You are able to choose a passphrase, so pick something easy to remember and sufficiently complex.</p>
<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">ssh-keygen</span> <span style="color: #660033;">-t</span> dsa <span style="color: #660033;">-f</span> ~<span style="color: #000000; font-weight: bold;">/</span>.ssh<span style="color: #000000; font-weight: bold;">/</span>id_dsa <span style="color: #660033;">-C</span> <span style="color: #ff0000;">&quot;your.email.address&quot;</span></pre></div></div>
<p>Copy the public key to the remote server</p>
<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">scp</span> id_dsa.pub username<span style="color: #000000; font-weight: bold;">@</span>remoteserver.com:~<span style="color: #000000; font-weight: bold;">/</span>.ssh<span style="color: #000000; font-weight: bold;">/</span></pre></div></div>
<p>This whole exercise relies on correct permissions on important files.  You should keep your private key very secure, for reasons other than getting this to work correctly.</p>
<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">chmod</span> <span style="color: #000000;">600</span> ~<span style="color: #000000; font-weight: bold;">/</span>.ssh<span style="color: #000000; font-weight: bold;">/</span>id_dsa</pre></div></div>
<p>On the remote server, let&#8217;s add your public key to the authorized keys file, which lives in your home account</p>
<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">cat</span> id_dsa.pub <span style="color: #000000; font-weight: bold;">&gt;&gt;</span> authorized_keys2
<span style="color: #c20cb9; font-weight: bold;">chmod</span> <span style="color: #000000;">644</span> authorized_keys2
<span style="color: #c20cb9; font-weight: bold;">chmod</span> <span style="color: #000000;">700</span> ~<span style="color: #000000; font-weight: bold;">/</span>.ssh</pre></div></div>
<p>Back on your local machine, you now need to authorize yourself to use the new public key.  For OS-X it easy.  Just connect to a box that has a shared key.  You&#8217;ll get <a href="http://photos.cainmanor.com/2009/02/pk_password.png"><img class="size-medium wp-image-480 alignnone" title="pk_password" src="http://photos.cainmanor.com/2009/02/pk_password.png" alt="" width="300" height="175" /></a><br />
To add identities to your keychain without the popup box (OS-X only)</p>
<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">ssh-add</span> <span style="color: #660033;">-K</span></pre></div></div>
<p>To add the identities previously stored in your keychain (OS-X only)</p>
<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">ssh-add</span> <span style="color: #660033;">-k</span></pre></div></div>
<p>For other unixes you can add the key manually (this works on OS-X too.)</p>
<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">ssh-add</span></pre></div></div>
<p>To see what keys you have loaded (again, all Unixes, including OS-X)</p>
<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">ssh-add</span> <span style="color: #660033;">-l</span></pre></div></div>
<p>To delete keys (this will delete from your keychain too)</p>
<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">ssh-add</span> <span style="color: #660033;">-d</span></pre></div></div>
<p>There are a lot of cool things you can do with ssh-add.  The man pages are your friend.</p>
]]></content:encoded>
			<wfw:commentRss>http://cainmanor.com/tech/ssh-public-and-private-key-setup-on-os-x/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
