On my system vncserver is a Perl script that invokes Xtightvnc the real server. The author of this script did not allow for the ability to use the rfbauth command to set the password file. Use vncpassword to create a default password file ~/.vnc/passwd from there you can scp the file to the system running the vncviewer and call it what every you want.

If the server is running on 192.168.2.34 and you call the password file myvncpasswdfile you would do this
vncviewer 192.168.2.34:1 -passwd myvncpasswdfile

If you don't trust your network or you want to use VNC securely over the Internet use an SSH tunnel to connect to the VNC server like so. You should only use SSH with PKI.

Assuming you already have your PKI setup to grant you access to your account on the server.
1) SSH into the server
2) Start a new vncserver session
3) Find the VNC port it is serving (ps U <your user name> | grep vnc)
4) Logout of the server
5) Create an SSH port forward to the VNC port on the remote system
    Example: ssh [EMAIL PROTECTED] -CL 5900:127.0.0.1:5901
6) Run the VNC client locally. vncviewer :0
7) Enter your VNC password on the server

SSH will tunnel the VNC port 5900 on your local computer to the 5901 on the remote system.

On Wed, 2006-04-26 at 09:09 -0600, Mitchell Brown wrote:
Hi all,
Having a little trouble..
Currently running PCLinuxOS .93MiniMe -- I've installed tightVNC server via Synaptic.
Now, whenever I try and run "vncserver" it simply dumps
"vncserver: Wrong type or access mode of /home/mbrown/.vnc." to the screen (mind you I'm doing this over SSH).
I tried doing sudo vncserver but then it starts the vncserver on the ROOT desktop (BAD!).

Can someone tell me
1) How to start it up, with a password
2) How to make it start on boot, with a password

Thanks!
_______________________________________________
clug-talk mailing list
[email protected]
http://clug.ca/mailman/listinfo/clug-talk_clug.ca
Mailing List Guidelines (http://clug.ca/ml_guidelines.php)
**Please remove these lines when replying

Royce Souther
www.SiliconTao.com
Let Open Source help your business move beyond.

For security this message is digitally authenticated by GnuPG.





Royce Souther
www.SiliconTao.com
Let Open Source help your business move beyond.

For security this message is digitally authenticated by GnuPG.



Attachment: signature.asc
Description: This is a digitally signed message part

_______________________________________________
clug-talk mailing list
[email protected]
http://clug.ca/mailman/listinfo/clug-talk_clug.ca
Mailing List Guidelines (http://clug.ca/ml_guidelines.php)
**Please remove these lines when replying

Reply via email to