<?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>logIt &#187; ssh</title>
	<atom:link href="https://lakm.us/logit/tag/ssh/feed/" rel="self" type="application/rss+xml" />
	<link>https://lakm.us/logit</link>
	<description>Log Around The Clock</description>
	<lastBuildDate>Sat, 06 Jun 2015 14:17:37 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.5.1</generator>
		<item>
		<title>OpenSSH With Key</title>
		<link>https://lakm.us/logit/2009/09/openssh-with-key/</link>
		<comments>https://lakm.us/logit/2009/09/openssh-with-key/#comments</comments>
		<pubDate>Thu, 03 Sep 2009 07:00:19 +0000</pubDate>
		<dc:creator>Arif</dc:creator>
				<category><![CDATA[General Linux]]></category>
		<category><![CDATA[ssh]]></category>

		<guid isPermaLink="false">http://localhost/it/?p=80</guid>
		<description><![CDATA[ssh-keygen -t dsa Will generate a pair of public-private key (with type DSA) inside ~/.ssh/. Defaults are: id_dsa and id_dsa.pub The public key can be tranfered to other host with running sshd (ssh server). Default authorization key file used by sshd is ~/.ssh/authorized_keys (this can be configured from /etc/ssh/sshd_config). Append the generated id_dsa.pub to this [...]]]></description>
				<content:encoded><![CDATA[
<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</pre></div></div>

<p>Will generate a pair of public-private key (with type DSA) inside ~/.ssh/. Defaults are:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">id_dsa</pre></div></div>

<p> and</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">id_dsa.pub</pre></div></div>

<p>The public key can be tranfered to other host with running <code>sshd</code> (ssh server). Default authorization key file used by <code>sshd</code> is  <code>~/.ssh/authorized_keys</code> (this can be configured from <code>/etc/ssh/sshd_config</code>). Append the generated <code>id_dsa.pub</code> to this file in remote host:</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_keys</pre></div></div>

<p>My host with private key <code>id_dsa</code> can now <code>ssh</code> to remote host containing my public key in its <code>authorized_keys</code> file.</p>
]]></content:encoded>
			<wfw:commentRss>https://lakm.us/logit/2009/09/openssh-with-key/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
