<?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>Vasudeva Server &#187; Servers</title>
	<atom:link href="http://www.vasudevaserver.org/blog/category/documentation/servers/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.vasudevaserver.org</link>
	<description>Blog of Vasudeva Server</description>
	<lastBuildDate>Thu, 20 Oct 2011 21:12:38 +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>Configuring private keys for ssh access</title>
		<link>http://www.vasudevaserver.org/blog/2010/01/22/configuring-private-keys-for-ssh-access/</link>
		<comments>http://www.vasudevaserver.org/blog/2010/01/22/configuring-private-keys-for-ssh-access/#comments</comments>
		<pubDate>Fri, 22 Jan 2010 13:06:53 +0000</pubDate>
		<dc:creator>nirbhasa</dc:creator>
				<category><![CDATA[Servers]]></category>

		<guid isPermaLink="false">http://www.vasudevaserver.org/?p=22</guid>
		<description><![CDATA[(On Mac OS X) &#8211; This assumes you have already downloaded your priviate keys to your desktop There are 2 keys, one private and one public (this one has a .pub extension). Using Terminal, move your downloaded keys to your .ssh folder: for each file, type mv Desktop/{name of key file} ~/.ssh/ Give your keys [...]]]></description>
			<content:encoded><![CDATA[<p>(On Mac OS X) &#8211; This assumes you have already downloaded your priviate keys to your desktop</p>
<p>There are 2 keys, one private and one public (this one has a .pub extension). Using Terminal, move your downloaded keys to your .ssh folder: for each file, type</p>
<p><code>mv Desktop/{name of key file} ~/.ssh/</code></p>
<p>Give your keys the proper names:</p>
<p><code><br />
cd ~/.ssh/<br />
mv {name of private key} id_rsa<br />
mv {name of public key} id_rsa.pub</code></p>
<p>The private key should have readonly permissions:</p>
<p><code>chmod 400 ~/.ssh/id_rsa </code></p>
<p>So now you can login to the server. To simplify the process, you also create a text file ~/.ssh/config , where you can set three lines for ssh login info for your simple ssh use.  To create the file, type:</p>
<p><code>vim ~/.ssh/config</code></p>
<p>Press &#8216;I&#8217; (capital i) to go into &#8216;edit mode&#8217;, and then the following 3 lines (using the example of our Vasudeva Server servers:)</p>
<p><code>Host {server-name}.vasudevaserver.net<br />
Port {port-number}<br />
User {user-name}</code></p>
<p>Where {server-name} is the name of our server in lower case, {port-number} is the port we use to connect (for security reasons this is very often changed from the default port 22) and {user-name} is your user name to access the server. When you are finished, press escape (to exit edit mode) and then &#8216;ZZ&#8217; (to exit and save changes) </p>
<p>After you have done that, you can try to log in using the command</p>
<p><code>ssh {server-name}.vasudevaserver.net</code></p>
<h3>Another tip&#8230;</h3>
<p>You can also create a simple alias for the server name by adding a line to your /etc/hosts file</p>
<p><code>{server-ip} {server-name} {server-name}.vasudevaserver.net</code></p>
<p>So a example for a hypothetical server antara.vasudevaserver.net located at ip address 127.0.0.1 would be</p>
<p><code>127.0.0.1 antara antara.vasudevaserver.net</code></p>
<p>This means that when accessing our servers, you can simply type</p>
<p><code>ssh {server-name}</code></p>
<p>without the vasudevaserver.net at the end.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.vasudevaserver.org/blog/2010/01/22/configuring-private-keys-for-ssh-access/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

<!-- Dynamic page generated in 0.401 seconds. -->
<!-- Cached page generated by WP-Super-Cache on 2012-02-06 20:53:30 -->

