This tutorial will walk you through the steps to running a SSH server on your Windows machine and using it to create a secure tunnel through the Internet to use VNC.
SETUP: Server
Install the SSH server:
Test the SSH server:
Install the VNC server:
Tweak your firewall (if applicable) to allow port 22:
Tweak your router (if applicable) to forward port 22:
SETUP: Remote machine
Install the SSH client and create a tunnel:
Configure PuTTY for auto-login (if you choose to use PuTTY):
Install the VNC viewer:
EXECUTE: VNC over SSH
[...] HOWTO: Set up a Windows SSH server for VNC tunneling [ 17 August 2006 ] Marked under security, windows. [...]
I tried this so many times and it doesn’t work.
First, for some reason, all of the tutorials I saw (like this one) ommit the login process; jumping from ssh localhost to the ls -lh /cygdrive/c.
After synchronising Windows user accounts with Cygwin I use my Windows user password but I get “Permission Denied”.
My windows 2000 server is not on a domain, but I couldn’t see the group GID in /etc/passwd records, so I tried editing /etc/group as described on http://pigtail.net/LRP/printsrv/passwd-group.html but it didn’t work either.
Also, by default, when sshd Windows user account is created on my system, it is disabled by default.
I’m not sure how all this works. In my setup I have ssh running and tested. From my remote workstation I can use ssh. On my PC I can see that ssh works only when Windows Firewall has port 22 listed as an exception. This all seems fine.
My problem is getting my remote workstation to connect using VNC.
1.) What needs to be setup on the PC in order for my workstation vncviewer to connect?
2.) What if anything needs to change on the remote workstation setup?
My goal is to have the PC setup to allow remote secure VNC connections via ssh.
Hi. This is very helpful material! Just a question. In configuring Putty, what are the profile name, login name, and passwords that I should use? Thanks ![]()
Ann,
When you first set up PuTTY, enter in the server info and use the Saved Session section to save the profile. That’s what your profile is called. The login and password are the actual values you use on your SSH server.
[...] All Things Marked » HOWTO: Set up a Windows SSH server for VNC tunneling [...]
for more advanced vnc over setup : http://users.rcn.com/tushar.manglik/
whenever i want to test the ssh
i type in ssh localhost
it asks for the password
but i cant type anything
no password nothin
i just can click enter and get permission denied
i removed my user password and sync’ed it again
so now m not supposed to have any passwords
and type in nothing and click enter
i still get permission denied
i tried doin same thing from dos using other commands
same thing happens when it asks for my password
inactive keyboard
matter of fact this message comes
Permission denied (publickey,password,keyboard-interactive).
help and thank u
One little trick that i have found out is opening the onscreen keyboard and then typing your password will work. The only problem is that it doesn’t show what you have typed and it is very annoying to do everytime you login. Hopefully this will help solve your problem until they fix the program(if it is a program error), or until i find out a way to fix this(although i have searched the web up and down and can’t seem to find anything)…….Cheers!
I have configured tunneling via PuTTy as well as manually by entering ssh -C -L 5902:192.168.1.200:5902 -l 1shay 192.168.1.250 from a command prompt. Everything appears fine from a connection perspective. I am logged in as expected ps -ef | grep vnc shows that I have the process listening on port 2:1shay as expected.
The problem I am having is that once I initiate the session from VNC [127.0.0.1:2 or localhost:2] on my XP client, nothing happens. No password prompt, no remote window opens…nothing. output from /var/log/secure indicates the following:
Received request to connect to host 192.168.1.200 port 5902, but the request was denied.
This would indicate that I can’t open the 5902 connection on my XP client. I’ve searched over a hundred different sites attempting to nail down this issue but haven’t found any answer yet. Anyone have any ideas? Anyone seen this happen before?
Allowed HTML: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>
Article
Recent articles
Articles marked as
Search
Wow, you published this a while ago. It’s almost like Lifehacker copyed your how to and made it into a Geek to Live.
Keep them coming!