<?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>Tyler Oderkirk&#039;s Blog &#187; Virtualization</title>
	<atom:link href="http://unsyncopated.com/blog/index.php/category/virtualization/feed/" rel="self" type="application/rss+xml" />
	<link>http://unsyncopated.com/blog</link>
	<description>&#34;Scared money don&#039;t[sic] make money&#34;</description>
	<lastBuildDate>Thu, 27 Jan 2011 05:02:58 +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>Administering a QEMU guest with OpenSSH</title>
		<link>http://unsyncopated.com/blog/index.php/2007/07/24/administering-a-qemu-guest-with-openssh/</link>
		<comments>http://unsyncopated.com/blog/index.php/2007/07/24/administering-a-qemu-guest-with-openssh/#comments</comments>
		<pubDate>Tue, 24 Jul 2007 18:12:30 +0000</pubDate>
		<dc:creator>Tyler</dc:creator>
				<category><![CDATA[Virtualization]]></category>

		<guid isPermaLink="false">http://unsyncopated.com/blog/?p=752</guid>
		<description><![CDATA[So you&#8217;ve just installed a QEMU guest and you realize that all you reallyneed to administer it is SSH; SDL and VNC are overkill. Since AFAICS KVM&#8217;s default networking configuration prevents you from initiating host-&#62;guest TCP/IP connections, you&#8217;ll want to take advantage of SSH&#8217;s reverse tunneling (-R) capability. After installing installing sshd on the guest [...]]]></description>
			<content:encoded><![CDATA[<p>So you&#8217;ve just installed a QEMU guest and you realize that all you <span style="font-style: italic;">really</span>need to administer it is SSH; SDL and VNC are overkill. Since AFAICS KVM&#8217;s <a href="https://help.ubuntu.com/community/KVM?action=recall&amp;rev=58#head-18da04c9a7440fd3a8b719d922ccb481c9d30509">default networking configuration</a> prevents you from initiating host-&gt;guest TCP/IP connections, you&#8217;ll want to take advantage of SSH&#8217;s reverse tunneling (-R) capability.</p>
<p>After installing installing sshd on the guest and host, execute this on the guest:</p>
<blockquote><p><tt>ssh -R 9898:127.0.0.1:22 your_username_on_host@10.0.2.2</tt></p></blockquote>
<p><tt> </tt></p>
<p>What this command does is&#8230;</p>
<ol>
<li>Opens an ssh connection from the guest to the host. 10.0.2.2 is the address of host as presented to the guest via the private VLAN.</li>
<li>Once the connection is open, SSH begins listening on the host&#8217;s loopback adapter on port 9898 for connections which it will forward to port 22 on the guest.</li>
</ol>
<p>Now, you can simply run this on the host to open an SSH connection to the guest:</p>
<blockquote>
<pre>ssh -p 9898 your_username_on_guest@localhost</pre>
</blockquote>
<p>This technique of course can be used to make any guest-based services available to the host. It&#8217;s not limited to the virtualization realm either.<br />
Enjoy!</p>
<p><strong>Update:</strong> <a href="http://wiki.qemu.org/download/qemu-doc.html">QEMU&#8217;s `-redir` option</a> is a simpler way to achieve the above.</p>
]]></content:encoded>
			<wfw:commentRss>http://unsyncopated.com/blog/index.php/2007/07/24/administering-a-qemu-guest-with-openssh/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

