Tunneling remote control

Continuing with my May 3 entry, I managed to establish remote control via both VNC and Remote Desktop through my SSH tunnel. It’s pretty simple once you get through the conceptual hurdles and set a new registry key value for VNC.

The process is only a little different depending on whether you’ve got 2 machines in the equation (your controlling machine and your controlled machine) or 3 machines (your controlling machine, a intermediary machine to which you SSH, and the controlled machine).

For the TWO machine case, ssh from your controlling machine to the controlled machine like so:

  ssh -L <localport>:localhost:<remoteport> controlled-machine

For the THREE machine case, ssh from the controlling machine to the intermediary machine like so:

  ssh -g -L <localport>:localhost:<remoteport> intermediary-machine

&ltremoteport&gt for Remote Desktop should be 3389 and for VNC it’s 5900 (or 5901 or 5902, etc., depending on your Display Number setting in VNC’s options).

&ltlocalport&gt is the port number on the controlling machine (the local machine) that you’ll connect to with either Remote Desktop or vncviewer.

OK, so, now you need to connect. Connecting is a little different depending on whether you’ve got the two machine or the three machine case.

In the TWO machine case, for VNC use the following. And if you get an error message about local loopback being disabled, read WinVNC – Advanced Settings and set the registry key appropriately.

  vncviewer localhost:<displaynumber>

Remote Desktop won’t let you connect to localhost so enter 127.0.0.2 in the Computer Name field.

In the THREE machine case, for both vncviewer and Remote Desktop you use the hostname of the machine to be controlled.

Simple, eh? OK, maybe not really simple but it’s not as hard as it looks. Work through it once or twice and everything should become clear. And here’s a link to the RealVNC web page that explains how to use SSH.

BTW, an alternative if the only machines in the picture are running Windows, is UltraVNC.

Tunneling remote control Read More »

Cygwin vs GotoMyPC et al. -OR- Getting to your machine from elsewhere

Cygwin has been high on my list of tools for over 10 years. It’s a *free* Unix environment that runs inside of Windows. It’s not like VMware in that it exists alongside Windows — you don’t boot one or the other. Rather, it’s a set of DLLs and APIs that allows you to run Unix commands from the command line — a DOS box if you will. It has full implementations of X11, GNU Emacs, SSL, OpenSSH, cron … a list too long to go into here.

One of the thuings you can do with this package is run an SSH daemon (SSHD). Why? SSHD provides a secure path to your machine from other machines. No, it’s not a Windows GUI, it’s a Unix command-line UI but you can run X11 if you MUST have a GUI and the whole thing is secured by OpenSSH. With the addition of some of the fine tools from Sysinternals like PsTools you can monitor your event log and see who’s been trying to log in.

Cygwin vs GotoMyPC et al. -OR- Getting to your machine from elsewhere Read More »

Email services and more

I stumbled across cotse.net a little while ago and am seriously considering subscribing. They’re an outgrowth of the cotse.com privacy site. For $5.95/mo. you get unlimited email aliases which you can turn on and off with 50MB of storage, POP3 and secure POP3, SMTP and secure SMTP, and both NNTP and web proxies. For a $25 setup fee they’ll provide the same for your own domain (you handle the registration). Why would I do this? I’m an email alias junkie. When I sign up for something at a site and they want an email address, I create one and give it to them. Many times I keep that alias around to read their newsletters and such but sometimes I get tired of the advertising or just can’t find out how to unsubscribe from their mailings so I need a way to disable the alias. Sure, I’ve got my own domains (tonys-links.com is one) so I can do what I like with email addresses but I like to keep tabs on my aliases and am willing to pay for it. I’ve been using Mailshell for a couple of years now for similar but less extensive services at about half the price.

Information about cotse.net’s services is available here with more detailed info here.

I’ll let you know what happens.

Email services and more Read More »