简体   繁体   English

SSVNC命令行参数

[英]SSVNC command line arguments

I recently got SSVNC to connect a Windows VNC client to a Linux VNC server through a repeater with SSL encryption. 我最近得到了SSVNC,通过具有SSL加密的转发器将Windows VNC客户端连接到Linux VNC服务器。

I am now trying to use SSVNC in Windows Command Prompt. 我现在正在尝试在Windows命令提示符中使用SSVNC。 What I have found so far online is that command line arguments are supported in Unix environments, but have not found the same documentation for Windows. 到目前为止,我在网上发现的是Unix环境中支持命令行参数,但找不到Windows的相同文档。 So far the only command line argument that I have found for Windows ssvnc.exe is specifying the client, which is not adequate for what I am trying to do. 到目前为止,我为Windows ssvnc.exe找到的唯一命令行参数是指定客户端,这不足以满足我的要求。 In Unix, there is support for specifying a profile, so I opened one of those profile files in a text editor. 在Unix中,支持指定配置文件,因此我在文本编辑器中打开了其中一个配置文件。 This seemed like a possible option for what I am trying to do, but I am not sure if the Windows executable supports it/ haven't had success with it. 对于我尝试做的事情,这似乎是一个可能的选择,但是我不确定Windows可执行文件是否支持它/尚未成功。

Basically what I am looking for is: Is it possible to launch SSVNC with a batch file in Windows and have SSVNC establish an SSL connection between a Windows VNC client and Linux VNC server through a UVNC repeater? 基本上,我要寻找的是:是否可以在Windows中用批处理文件启动SSVNC,并让SSVNC通过UVNC中继器在Windows VNC客户端和Linux VNC服务器之间建立SSL连接? Is it possible to launch SSVNC with a profile in Windows? 是否可以在Windows中使用配置文件启动SSVNC? This way I could specify certain settings before hand and SSVNC will handle the connection and launch a viewer. 这样,我可以先指定某些设置,然后SSVNC将处理连接并启动查看器。 Are there any other methods I have not thought of to make this work? 我还有没有想到的其他方法可以完成这项工作?

I have been able to make this work in a batch file. 我已经能够在批处理文件中使这项工作。 This took a few steps to get working. 这花了一些步骤才能开始工作。

To do so I had to launch a fresh instance of SSVNC. 为此,我必须启动一个新的SSVNC实例。 Then I populated all the fields with the necessary information and selected the options I needed in the Options and Advanced Options windows. 然后,我在所有字段中填充了必要的信息,并在“选项”和“高级选项”窗口中选择了所需的选项。 After that I fetched and saved the SSL certificate. 之后,我获取并保存了SSL证书。 I saved this configuration as a new profile. 我将此配置另存为新的配置文件。 I then restarted the SSVNC gui and loaded the profile, and most of the settings stuck. 然后,我重新启动了SSVNC gui并加载了配置文件,并且大多数设置都卡住了。 The connection was established and the VNC client launched. 建立连接,并启动VNC客户端。

To test that I could load it with a profile I opened Command Prompt and navigated to the directory that SSVNC is located. 为了测试是否可以使用配置文件加载它,我打开了命令提示符,然后导航到SSVNC所在的目录。 I issued the command "ssvnc.exe demo", demo being my profile name. 我发出了命令“ ssvnc.exe demo”,demo是我的配置文件名称。 This launched with (mostly) the correct settings and the SSL connection through the UVNC repeater was made and the VNC client launched fine. (大多数情况下)使用正确的设置启动了该连接,并通过UVNC中继器进行了SSL连接,并且VNC客户端启动正常。

After that, I made my batch file. 之后,我制作了批处理文件。

cd C:...\ssvnc\Windows
start ssvnc.exe demo

And this works 这有效

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM