xfreerdpによるWindowsへの接続について



●xfreerdpによるWindowsへの接続方法

 コマンドラインで下記のように実行すると接続できます。
$ xfreerdp -u hoge@bigbang -g 1600x940 -p [password] [server] &
 &を行末に付加すると実行したコマンドがバックグラウンドで動作し続け、コマンドを実行したターミナルは別用途で利用できるようになります。&を行末にふかしないと該当接続が終了するまでコマンドを実行したターミナルは利用することができなくなりっます。

●接続先の認証鍵が変更となった場合の対処方法

 xfreerdpによる接続後、下記のように表示される場合があります。

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ WARNING: CERTIFICATE NAME MISMATCH! @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
The hostname used for this connection (server)
does not match the name given in the certificate:
saturn.bigbang.dyndns.org
A valid certificate for the wrong name should NOT be trusted!
Certificate details:
Subject: CN = server.bigbang.dyndns.org
Issuer: CN = server.bigbang.dyndns.org
Thumbprint: f2:72:c1:07:eb:61:26:46:36:5b:ad:bc:65:06:1f:7e:85:3d:e5
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


 これは過去に接続したことがあり、以前の接続先の情報が残っている場合に表示されます。この場合、実行するコマンドの行末に&を付加せずに実行し"Y"を入力します。
 そうすると、~/.freerdp/known_hostsに保存されている情報を更新します。&を付加したまま"Y"を入力しても情報を更新せず何度も同じことを繰り返すことになりますので注意してください。