<?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>Computer Support &#187; X11</title>
	<atom:link href="http://www.xiitec.com/blog/tag/x11/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.xiitec.com/blog</link>
	<description></description>
	<lastBuildDate>Wed, 30 Dec 2009 08:40:28 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Tunneling X over SSH</title>
		<link>http://www.xiitec.com/blog/2008/02/04/tunneling-x-over-ssh/</link>
		<comments>http://www.xiitec.com/blog/2008/02/04/tunneling-x-over-ssh/#comments</comments>
		<pubDate>Mon, 04 Feb 2008 23:50:35 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Remote access]]></category>
		<category><![CDATA[ssh]]></category>
		<category><![CDATA[tunneling]]></category>
		<category><![CDATA[X11]]></category>

		<guid isPermaLink="false">http://www.xiitec.com/blog/?p=99</guid>
		<description><![CDATA[You like running remote X sessions, but you know that they are completely insecure, so you want to run X over SSH.
Enable X forwarding on the SSH server, in /etc/ssh/sshd_config. Then use the -X flag when you start your SSH session.

Put this line in /etc/ssh/sshd_config on the SSH server:
X11Forwarding yes
Then connect to the server with [...]]]></description>
			<content:encoded><![CDATA[<p>You like running remote X sessions, but you know that they are completely insecure, so you want to run X over SSH.</p>
<p>Enable X forwarding on the SSH server, in <code>/etc/ssh/sshd_config</code>. Then use the <code>-X</code> flag when you start your SSH session.</p>
<p><span id="more-99"></span></p>
<p>Put this line in <code>/etc/ssh/sshd_config</code> on the SSH server:</p>
<blockquote><p>X11Forwarding yes</p></blockquote>
<p>Then connect to the server with the -X flag:</p>
<blockquote><p>$ ssh -X saturn.test.net</p></blockquote>
<p>Run this command to test that X forwarding is working:</p>
<blockquote><p>$ echo $DISPLAY<br />
localhost:10.0</p></blockquote>
<p>If it weren&#8217;t, it would return a blank line. Now you can run any X program installed on the server as though it were local. Try this for a simple test:</p>
<blockquote><p>$ xeyes</p></blockquote>
<p>Or run <code>glxgears</code>, or any X program that is installed on the server.</p>
<p>Using SSH for remote X sessions is both simpler and more secure than running a plain-vanilla X session without SSH, which is not secure at all. However, it still carries some risks. Use this to connect only to trusted hosts, because a snoopy admin can easily capture your keystrokes or logins, or even connect to your local desktop and snoop even more. Make sure your local ~/.Xauthority file is mode 600, to prevent unprivileged users on the remote host from also joining in the snooping.</p>
<p>Be sure that these entries are in your local <code>/etc/ssh/ssh_config</code> file and any <code>~/ ssh/ssh_config</code> files on your system:</p>
<blockquote><p> Host *<br />
ForwardX11 no<br />
ForwardAgent no</p></blockquote>
<p>It&#8217;s important to ensure that X forwarding is turned off, except when you absolutely need it.</p>
<p>Depending on your physical distance from the remote server and the speed of your network connection, you may notice some lag in your keystrokes or mouse movements, as the X protocol is a bit of a network hog.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.xiitec.com/blog/2008/02/04/tunneling-x-over-ssh/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

