Linux側からwindowsマシンへアクセスする方法の一つ。
windowsのリモートディスクトップがLinuxで使えるようになるものです。
*&sizd(10){正確にはLinuxで使える リモートディスクトップ クライアント です};
ここでは CentOS 7.6 にこのFreeRDPを使えるようにしてみます。
CentOSのリポジトリから提供されているようで
[root@c101 ~]# yum install freerdpでインストールされます。
単純に
xfreerdp -u <windows側のアカウント> <接続するwindowsマシン>でいけます。
例:
「win」というマシンに、ドメインアカウント「administrator@sybyl.local」でログインする場合、
[saber@c101 ~]$ xfreerdp -u "administrator@sybyl.local" win
connected to win:3389
creating directory /home/saber/.freerdp/certs
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ WARNING: CERTIFICATE NAME MISMATCH! @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
The hostname used for this connection (win)
does not match the name given in the certificate:
win.sybyl.local
A valid certificate for the wrong name should NOT be trusted!
Certificate details:
Subject: CN = win.sybyl.local
Issuer: CN = win.sybyl.local
Thumbprint: ca:46:ca:4e:a7:b7:7f:12:4a:f8:37:90:36:4f:59:b0:41:42:c2
The above X.509 certificate could not be verified, possibly because you do not have the CA certificate in (略
Do you trust the above certificate? (Y/N) y
Password:sshで接続と同様に、接続先情報を保存するようで、保存場所は「&color(magenta){~/.freerdp/known_hosts」となります。
最後に「administrator@sybyl.local」のパスワード要求に答えて、符号が合えば画面が表示されます。
もしLinux側の画面が小さくて、リモートディスクトップが上手く表示できないのなら
[saber@c101 ~]$ xfreerdp -u "administrator@sybyl.local" -g 768x600 winと「-g」オプションで画面サイズを変更させます。

注意
xfreerdpは最後に接続先のマシンを指定しないと駄目みたい。途中とかでマシン名を入力していると
下記のようなエラーが発生します。
[saber@c101 ~]$ xfreerdp win -u "illya@sybyl.local" -g 768x600
connected to win:3389
Password:
SSL_read: Failure in SSL library (protocol error?)
Authentication failure, check credentials.
If credentials are valid, the NTLMSSP implementation may be to blame.
[saber@c101 ~]$ローカルマシン、ドメインにもアカウントがある場合、ドメイン名をつけないとローカルアカウント、
ドメイン名を付けたらドメインのアカウントでログイン処理が行われるみたい。
ドメインアカウントでログインを行うには、ローカルのアカウントがなければそのままでOK
もしローカルにも同じアカウントがあるのなら
administrator@<ドメイン>とする必要がある。
<ドメイン>\administratorは使えないみたい。