<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
	>
<channel>
	<title>Comments on: VNC &#038; ssh through NAT</title>
	<atom:link href="http://www.extrapepperoni.com/2006/02/04/vnc-ssh-through-nat/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.extrapepperoni.com/2006/02/04/vnc-ssh-through-nat/</link>
	<description>Chris Pepper on whatever (the non-Julia blog)</description>
	<pubDate>Tue, 06 Jan 2009 08:27:42 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.7</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: sarahmei</title>
		<link>http://www.extrapepperoni.com/2006/02/04/vnc-ssh-through-nat/comment-page-1/#comment-237</link>
		<dc:creator>sarahmei</dc:creator>
		<pubDate>Sat, 18 Aug 2007 00:05:11 +0000</pubDate>
		<guid isPermaLink="false">http://www.extrapepperoni.com/2006/02/04/vnc-ssh-through-nat/#comment-237</guid>
		<description>&lt;p&gt;Very helpful post. Thank you for writing it.&lt;/p&gt;

&lt;p&gt;I'm helping a client set up an OS X server for me to remote into. We're on a VPN together, so the server has a 10.1.1.XXX address. I can ssh in just fine but it's a lot easier to install DMGs when you can double-click them...&lt;/p&gt;

&lt;p&gt;They've set up access to ARD with the checkbox checked for my user, but I still get an error when I try to connect with the VNC client. "Connection failed: Apple Remote Desktop is not configured. Please configure it so VNC viewers may control screen with password."&lt;/p&gt;

&lt;p&gt;So, I googled around for solutions and came across your post. I'm not sure if DHCP has anything to do with my issues - as a VPN client perhaps it's me with the weird IP.&lt;/p&gt;

&lt;p&gt;In any case, I wonder if you could clarify what the ssh step is doing. It looks like it's binding port 5900 to 6900, and port 22 to 6922, then ssh'ing to your (the client) machine? What does that do?&lt;/p&gt;

&lt;p&gt;Sarah&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Very helpful post. Thank you for writing it.</p>

<p>I&#8217;m helping a client set up an OS X server for me to remote into. We&#8217;re on a VPN together, so the server has a 10.1.1.XXX address. I can ssh in just fine but it&#8217;s a lot easier to install DMGs when you can double-click them&#8230;</p>

<p>They&#8217;ve set up access to ARD with the checkbox checked for my user, but I still get an error when I try to connect with the VNC client. &#8220;Connection failed: Apple Remote Desktop is not configured. Please configure it so VNC viewers may control screen with password.&#8221;</p>

<p>So, I googled around for solutions and came across your post. I&#8217;m not sure if DHCP has anything to do with my issues - as a VPN client perhaps it&#8217;s me with the weird IP.</p>

<p>In any case, I wonder if you could clarify what the ssh step is doing. It looks like it&#8217;s binding port 5900 to 6900, and port 22 to 6922, then ssh&#8217;ing to your (the client) machine? What does that do?</p>

<p>Sarah</p>]]></content:encoded>
	</item>
	<item>
		<title>By: reppep</title>
		<link>http://www.extrapepperoni.com/2006/02/04/vnc-ssh-through-nat/comment-page-1/#comment-119</link>
		<dc:creator>reppep</dc:creator>
		<pubDate>Mon, 09 Apr 2007 04:04:09 +0000</pubDate>
		<guid isPermaLink="false">http://www.extrapepperoni.com/2006/02/04/vnc-ssh-through-nat/#comment-119</guid>
		<description>&lt;p&gt;Roger,&lt;/p&gt;

&lt;p&gt;Don't start the command with the filename, and you don't need any quotes for it. "&lt;code&gt;cp ~/.ssh/id_rsa.pub ~/.ssh/authorized_keys&lt;/code&gt;" looks right, but it seems to be complaining about your &lt;code&gt;~/.ssh&lt;/code&gt; directory.&lt;/p&gt;

&lt;p&gt;Try the following:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;cd ~/.ssh
ls -l
cp id_rsa.pub authorized_keys
ssh 127.0.0.1
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;The &lt;code&gt;cd&lt;/code&gt; should work if you have a &lt;code&gt;.ssh&lt;/code&gt; directory. The &lt;code&gt;ls&lt;/code&gt; should show you &lt;code&gt;id_rsa.pub&lt;/code&gt; and likely other files, and the &lt;code&gt;cp&lt;/code&gt; should copy the file. The &lt;code&gt;ssh&lt;/code&gt; should log you back in without typing a password.&lt;/p&gt;

&lt;p&gt;Good luck!&lt;/p&gt;

&lt;p&gt;Note that in real life, you normally want to copy to a remote machine. There are two steps for this, the first only required if you might not have a remote &lt;code&gt;.ssh&lt;/code&gt; directory (this assumes you already have an &lt;code&gt;authorized_keys&lt;/code&gt; file on the local system):&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;ssh &lt;var&gt;host&lt;/var&gt; mkdir -p .ssh
scp ~/.ssh/authorized_keys &lt;var&gt;host&lt;/var&gt;:.ssh/&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Note: All this assumes you actually have &lt;code&gt;~/.ssh/id_rsa&lt;/code&gt;; you will have to change filenames from the examples if not.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Roger,</p>

<p>Don&#8217;t start the command with the filename, and you don&#8217;t need any quotes for it. &#8220;<code>cp ~/.ssh/id_rsa.pub ~/.ssh/authorized_keys</code>&#8221; looks right, but it seems to be complaining about your <code>~/.ssh</code> directory.</p>

<p>Try the following:</p>

<pre><code>cd ~/.ssh
ls -l
cp id_rsa.pub authorized_keys
ssh 127.0.0.1
</code></pre>

<p>The <code>cd</code> should work if you have a <code>.ssh</code> directory. The <code>ls</code> should show you <code>id_rsa.pub</code> and likely other files, and the <code>cp</code> should copy the file. The <code>ssh</code> should log you back in without typing a password.</p>

<p>Good luck!</p>

<p>Note that in real life, you normally want to copy to a remote machine. There are two steps for this, the first only required if you might not have a remote <code>.ssh</code> directory (this assumes you already have an <code>authorized_keys</code> file on the local system):</p>

<pre><code>ssh <var>host</var> mkdir -p .ssh
scp ~/.ssh/authorized_keys <var>host</var>:.ssh/</code></pre>

<p>Note: All this assumes you actually have <code>~/.ssh/id_rsa</code>; you will have to change filenames from the examples if not.</p>]]></content:encoded>
	</item>
	<item>
		<title>By: rogeradams</title>
		<link>http://www.extrapepperoni.com/2006/02/04/vnc-ssh-through-nat/comment-page-1/#comment-118</link>
		<dc:creator>rogeradams</dc:creator>
		<pubDate>Mon, 09 Apr 2007 03:50:28 +0000</pubDate>
		<guid isPermaLink="false">http://www.extrapepperoni.com/2006/02/04/vnc-ssh-through-nat/#comment-118</guid>
		<description>&lt;p&gt;Hi, I am having difficulty in configuring VNC on my Intel dual core MiniMac in trying to copy my "id_rsa.pub" to my "authorized_keys: â€œcp ~/.ssh/id_rsa.pub ~/.ssh/authorized_keysâ€œ but get the following errors in my terminal window:&lt;/p&gt;

&lt;p&gt;Quote&lt;/p&gt;

&lt;p&gt;Rogers-MacMini-3:~ rogeradams$ authorized_keys: "cp ~/.ssh/id_rsa.pub ~/.ssh/authorized_keys"
-bash: authorized_keys:: command not found
Rogers-MacMini-3:~ rogeradams$ ssh 127.0.0.1
ssh: connect to host 127.0.0.1 port 22: Connection refused
Rogers-MacMini-3:~ rogeradams$ cp ~/.ssh/id_rsa.pub ~/.ssh/authorized_keys
cp: /Users/rogeradams/.ssh/id_rsa.pub: No such file or directory
Rogers-MacMini-3:~ rogeradams$ cp ~/.ssh/rogeradams_rsa.pub ~/.ssh/authorised_keys
cp: /Users/rogeradams/.ssh/rogeradams_rsa.pub: No such file or directory
Rogers-MacMini-3:~ rogeradams$ authorized_keys:"cp ~/.ssh/id_rsa.pub ~/.ssh/authorised_keys"
-bash: authorized_keys:cp ~/.ssh/id_rsa.pub ~/.ssh/authorised_keys: No such file or directory
Rogers-MacMini-3:~ rogeradams$ authorised_keys: "cp ~/.ssh/rogeradams_rsa.pub ~/.ssh/authorized_keys"
-bash: authorised_keys:: command not found
Rogers-MacMini-3:~ rogeradams$&lt;/p&gt;

&lt;p&gt;Unquote&lt;/p&gt;

&lt;p&gt;Can anyone show me where I am going wrong?&lt;/p&gt;

&lt;p&gt;Many thanks&lt;/p&gt;

&lt;p&gt;Roger&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Hi, I am having difficulty in configuring VNC on my Intel dual core MiniMac in trying to copy my &#8220;id_rsa.pub&#8221; to my &#8220;authorized_keys: â€œcp ~/.ssh/id_rsa.pub ~/.ssh/authorized_keysâ€œ but get the following errors in my terminal window:</p>

<p>Quote</p>

<p>Rogers-MacMini-3:~ rogeradams$ authorized_keys: &#8220;cp ~/.ssh/id_rsa.pub ~/.ssh/authorized_keys&#8221;
-bash: authorized_keys:: command not found
Rogers-MacMini-3:~ rogeradams$ ssh 127.0.0.1
ssh: connect to host 127.0.0.1 port 22: Connection refused
Rogers-MacMini-3:~ rogeradams$ cp ~/.ssh/id_rsa.pub ~/.ssh/authorized_keys
cp: /Users/rogeradams/.ssh/id_rsa.pub: No such file or directory
Rogers-MacMini-3:~ rogeradams$ cp ~/.ssh/rogeradams_rsa.pub ~/.ssh/authorised_keys
cp: /Users/rogeradams/.ssh/rogeradams_rsa.pub: No such file or directory
Rogers-MacMini-3:~ rogeradams$ authorized_keys:&#8221;cp ~/.ssh/id_rsa.pub ~/.ssh/authorised_keys&#8221;
-bash: authorized_keys:cp ~/.ssh/id_rsa.pub ~/.ssh/authorised_keys: No such file or directory
Rogers-MacMini-3:~ rogeradams$ authorised_keys: &#8220;cp ~/.ssh/rogeradams_rsa.pub ~/.ssh/authorized_keys&#8221;
-bash: authorised_keys:: command not found
Rogers-MacMini-3:~ rogeradams$</p>

<p>Unquote</p>

<p>Can anyone show me where I am going wrong?</p>

<p>Many thanks</p>

<p>Roger</p>]]></content:encoded>
	</item>
</channel>
</rss>
