password option on command-line for vncviewer
Corne Beerse
cbeerse "at" gmail.com
Mon Nov 12 09:09:01 2007
Sir Jo wrote:
> Hi mailing-list :-)
>
> I want to connect to a server using command-line.
>
> If I try this, it works
> vncviewer.exe myserver.com
> but appeare a box that ask to me the password, and I need to insert it.
>
> How I need to insert password into command-line ??
>
> I have try these, but it don't works !!!
>
> vncviewer myserver.com -password mypassword
> vncviewer myserver.com -passwd mypassword
> vncviewer myserver.com /password mypassword
> vncviewer myserver.com -password mypassword
> vncviewer myserver.com password=mypassword
>
> :-(
>
> Is it possible to call vncviewer.exe with password option ???
>
The best way is to save a running vmware session to a file
<session>.vnc. While saving, you are asked to save the password to this
file or not. The file is kind of scrabled in the (further ascii
readable) file. Once you want to connect from the commandline, use the
-config option: `vncviewer -config <file>.vnc` and off you go.
Success
CBee