静默启动 RDP?

静默启动 RDP?

我目前使用以下命令启动 RDP 会话,该会话运行良好:

rds@rds:~/Downloads/FreeRDP$ xfreerdp /v:farm.company.com /d:company.com /g:rds.company.com /f /u:username /p:

目前,它显示以下所有内容,我必须接受证书两次。

creating directory /home/rds/.config/freerdp
creating directory /home/rds/.config/freerdp/certs
creating directory /home/rds/.config/freerdp/server
Certificate details:
    Subject: OU = Domain Control Validated, CN = *.company.com
    Issuer: C = US, ST = Arizona, L = Scottsdale, O = "GoDaddy.com, Inc.", OU = http://certs.godaddy.com/repository/, CN = Go Daddy Secure Certificate Authority - G2
    Thumbprint: ab:5a:03:f5:23:06:ad:76:57:e0:4a:2c:1f:be:04:b8:13:5c:32:55
The above X.509 certificate could not be verified, possibly because you do not have the CA certificate in your certificate store, or the certificate has expired. Please look at the documentation on how to create local certificate store for a private CA.
Do you trust the above certificate? (Y/N) Y
Password: 
Certificate details:
    Subject: OU = Domain Control Validated, CN = *.company.com
    Issuer: C = US, ST = Arizona, L = Scottsdale, O = "GoDaddy.com, Inc.", OU = http://certs.godaddy.com/repository/, CN = Go Daddy Secure Certificate Authority - G2
    Thumbprint: ab:5a:03:f5:23:06:ad:76:57:e0:4a:2c:1f:be:04:b8:13:5c:32:55
The above X.509 certificate could not be verified, possibly because you do not have the CA certificate in your certificate store, or the certificate has expired. Please look at the documentation on how to create local certificate store for a private CA.
Do you trust the above certificate? (Y/N) 
Do you trust the above certificate? (Y/N) Y

是否可以更改此设置,以便我只收到输入密码的提示?

答案1

您始终可以用一个脚本来包装它expect,该脚本可以自动回答“信任”问题。 http://en.wikipedia.org/wiki/Expect

答案2

您可以使用--from-stdin参数(例如withyes命令)来防止FreeRDP询问用户问题,例如证书验证。或者使用/cert-ignore客户端参数(不推荐)。

相关内容