Professional Documents
Culture Documents
html
College of Engineering > Computing Resources > Computing Best Practices > Mac Remote Desktop
Those wishing to access their office (or lab) computer can do so via "Windows Remote
Desktop", although not directly. The method described below provides a secure (encrypted via
SSH) method to gain access to a remote desktop (computer) behind the College's firewall.
This procedure is called tunneling.
1 of 4 4/8/07 3:22 AM
Mac Remote Desktop http://www.engr.wisc.edu/computing/best/rdesktop-mac.html
2. A terminal window will now appear on your desktop that looks something like the following:
3. Unlike Windows, the command to setup an SSH tunnel requires only one command line
entry. In the example below, we are tunneling the remote desktop port on the local
machine, through the gateway to the Remote Desktop port on the fictitious remote server
“remotedesktop.engr.wisc.edu” (enter the name or IP address of your computer in place of
this name). This name is resolved from the remote gateway machine, so it can be a
hostname not visible to the user machine.
What does this command string mean? Let us break it up into its' pieces so that it makes
sense:
ssh -L The "-L" switch tells SSH that it is going to be setting up a tunnel to
transport other traffic. NOTE: The case is important! If you were to use the
lowercase letter "l", you would be specifying a login name, not a tunnel.
3389: Is the local port that we want to re-route from your local computer and put
2 of 4 4/8/07 3:22 AM
Mac Remote Desktop http://www.engr.wisc.edu/computing/best/rdesktop-mac.html
5. After successfully logging into the Unix computer, you can minimize the Terminal window
(click on the yellow button). You do not need to type anything more in there, you just
need to have the connection open.
6. Start your Remote Desktop program as usual. Instead of typing in the name of the
computer that you want to connect to, type in 127.0.0.1 and then click on Connect . This
will connect you to the computer that was specified in the Terminal window between the
3389's (in this case, the fictional computer remotedesktop.engr.wisc.edu ).
7. Viola! You are now connected to your Remote Desktop computer through an SSH tunnel!
8. After you are done using Remote Desktop, exit from the program as normal and then you
may close the Terminal window (or just type logout if you want to close the connection to
the Unix computer but leave the Terminal program open).
3 of 4 4/8/07 3:22 AM
Mac Remote Desktop http://www.engr.wisc.edu/computing/best/rdesktop-mac.html
4 of 4 4/8/07 3:22 AM