Thu, 24 Jul 2008

3:55 PM - Using Apple Remote Desktop (ARD) over SSH

 I had a problem with a server at work recently.  I used to use a hint from the macosxhints site to reverse ssh into my home mac.  However, I can't do that anymore because my mac is behind NAT.  What I needed was a way to connect to the mac at work which was behind a firewall (but not nat).  I had another machine running FreeBSD with SSH open.  

Solution:

Connect to machine one

ssh -C -4 -L 5901:127.0.0.1:5900 remotehostyouwant  Connect to work mac: 
ssh -C -4 -L 5900:127.0.0.1:5900 macatwork   

location: Home

tags: ssh ard mac osx freebsd

1 comments

Original mac os hints article

userlaffer1
Thu, 24 Jul 2008 04:00:00 +0000

<p> I had a problem with a server at work recently. I used to use a hint from the macosxhints site to reverse ssh into my home mac. However, I can't do that anymore because my mac is behind NAT. What I needed was a way to connect to the mac at work which was behind a firewall (but not nat). I had another machine running FreeBSD with SSH open. </p> <p>Solution:</p> <p><samp>Connect to machine one</samp></p> <p><span class="Apple-style-span" style="color: rgb(51, 51, 51); font-family: 'Lucida Grande'; "> <pre><code style="font-size: 1.1em; font-family: 'Courier New', Courier, monospace; background-image: initial; background-repeat: initial; background-attachment: initial; -webkit-background-clip: initial; -webkit-background-origin: initial; background-color: rgb(250, 250, 240); color: rgb(102, 102, 102); background-position: initial initial; ">ssh -C -4 -L 5901:127.0.0.1:5900 remotehostyouwant <samp><span style="color: rgb(0, 0, 0); ">Connect to work mac:</span></samp> <span class="Apple-style-span" style="color: rgb(51, 51, 51); font-family: 'Lucida Grande'; font-size: 12px; white-space: normal; "><pre><code style="font-size: 1.1em; font-family: 'Courier New', Courier, monospace; background-image: initial; background-repeat: initial; background-attachment: initial; -webkit-background-clip: initial; -webkit-background-origin: initial; background-color: rgb(250, 250, 240); color: rgb(102, 102, 102); background-position: initial initial; ">ssh -C -4 -L 5900:127.0.0.1:5900 macatwork <br type="_moz" /></code></pre> </span></code></pre> </span></p>