VNC with Windows

kornfan71
Posts: 3
Joined: Wed Jan 19, 2011 8:19 pm

VNC with Windows

Postby kornfan71 » Wed Jan 19, 2011 8:31 pm

Hello all,
I just installed Amahi on my Acer Aspire easyStore H340 (since Windows Home Server fragged itself 3 times in a month... :evil: ), and like it so far. However, being that it is headless, I am trying (and failing) to use VNC.
I followed Method 1 in the VNC guide on the Wiki, and am able to SSH from a local LINUX machine and get a VNC connection.
(I use the command "ssh -L 25903:localhost:5903 hda" followed by running a VNC client and connecting to "localhost:25903" for Linux. Everything works as expected.)

However, when I attempt to connect on Windows, I get an error.
Method of connection: Use PuTTY to create an SSH tunnel. Forward the VNC port (5903) to my Windows box, call it port 25903. Open RealVNC Viewer and attempt to connect to "localhost:25903."
Result: VNC viewer immediately says "The connection closed unexpectedly. Do you wish to reconnect...?"

Why can't I connect in Windows?? :?

dinomic
Posts: 65
Joined: Mon Jan 03, 2011 6:49 am

Re: VNC with Windows

Postby dinomic » Thu Jan 20, 2011 12:19 pm

Why can't I connect in Windows?? :?
Personally, I couldn't get Method 1 to work properly either, so I went for Method 2, and all is OK.

Maybe try that, and if not, let us know and I'll compare notes with you??
Norco 4220 Case
Gigabyte GA-G33-DS3R Motherboard w/ 8GB RAM
LSI SAS2116PCIe 6GB/s SAS (replaced 3Ware 9690SA-4I & Chenbro CK1360)
1 x Hitachi 160Gb2.5" System Drive (original 1 x OCZ 60GB Vertex 2 SATAII 2.5" SSD died)
8 x 4TB Hitachi Deskstars
6 x 3TB Hitachi Deskstars
6 x 2TB Hitachi Deskstars (1 dead!)

kornfan71
Posts: 3
Joined: Wed Jan 19, 2011 8:19 pm

Re: VNC with Windows

Postby kornfan71 » Thu Jan 20, 2011 2:47 pm

Heh, I took another look and figured out the problem.... I was forwarding the port incorrectly in PuTTY, but correctly in Linux. :oops:

So, here's a quick how-to if you're having issues with connecting to the server via VNC. (Let's assume the server was configured with Method 1, and you are connecting to port 5903.)

Linux:
Open a terminal and enter this command:

Code: Select all

ssh -L 25903:localhost:5903 hda
Enter your credentials, and then open your favorite VNC viewer. For the host, enter:

Code: Select all

localhost:25903
Enter your password and enjoy!

Windows:
Open PuTTY.
1. Host Name: hda
2. Navigate to Connection > SSH > Tunnels
2a. For Source Port use 25903.
2b. For Destination use localhost:5903.
2c. Make sure the radio buttons are set to "Local" and "Auto", and click Add.
3. (Optional) Save the connection so you don't always need to do it from scratch.
4. Open connection and log in.
5. Open a VNC Viewer (I use RealVNC), and for the hostname, enter localhost:25903.
6. Realize that Linux is sometimes MUCH easier to use than Windows.... ;)


Hope that helps at least one person! :mrgreen:

User avatar
bigfoot65
Project Manager
Posts: 11355
Joined: Mon May 25, 2009 4:31 pm

Re: VNC with Windows

Postby bigfoot65 » Thu Jan 20, 2011 8:12 pm

Thanks for the clarification. If the wiki is unclear, could you please update it. Users find it easier to search for help there than in the forums.
ßîgƒσστ65
Applications Manager

ghuiber
Posts: 4
Joined: Thu Feb 03, 2011 7:21 pm

Re: VNC with Windows

Postby ghuiber » Thu Feb 03, 2011 7:43 pm

Heh, I took another look and figured out the problem... Hope that helps at least one person! :mrgreen:
Here's one. Thank you very much. Method 1 described at http://wiki.amahi.org/index.php/VNC, with TightVNC installed on a Windows 7 Pro machine, worked once. Method 2 did not work at all. So I googled around, found your post, and I can witness that pairing VNC with ssh via PuTTY like you did works a charm. Thanks again.

Who is online

Users browsing this forum: No registered users and 2 guests