#author("2019-03-02T12:05:19+00:00","default:sysosa","sysosa") #author("2019-03-02T12:08:31+00:00","default:sysosa","sysosa") Linux側からwindowsマシンへアクセスする方法の一つ。 windowsのリモートディスクトップがLinuxで使えるようになるものです。 &color(red){*};&sizd(10){正確にはLinuxで使える リモートディスクトップ クライアント です}; ここでは &color(lightseagreen){''CentOS 7.6''}; にこのFreeRDPを使えるようにしてみます。 ***インストール [#je6caee9] CentOSのリポジトリから提供されているようで #code(nonumber){{ [root@c101 ~]# yum install freerdp }} でインストールされます。 ***使い方 [#cf5fd54a] 単純に #code(nonumber){{ xfreerdp -u <windows側のアカウント> <接続するwindowsマシン> }} でいけます。 例: 「win」というマシンに、ドメインアカウント「&color(crimson){administrator@sybyl.local};」でログインする場合、 #code(nonumber){{ [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」となります。 最後に「&color(crimson){administrator@sybyl.local};」のパスワード要求に答えて、符号が合えば画面が表示されます。 もしLinux側の画面が小さくて、リモートディスクトップが上手く表示できないのなら #code(nonumber){{ [saber@c101 ~]$ xfreerdp -u "administrator@sybyl.local" -g 768x600 win }} と「-g」オプションで画面サイズを変更させます。 &ref(2019y03m02d_205227006.png,nolink); &color(white,blue){注意}; xfreerdpは最後に接続先のマシンを指定しないと駄目みたい。途中とかでマシン名を入力していると 下記のようなエラーが発生します。 #code(nonumber){{ [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 ~]$ }} ***アカウント [#cfa5faf9] ローカルマシン、ドメインにもアカウントがある場合、ドメイン名をつけないとローカルアカウント、 ドメイン名を付けたらドメインのアカウントでログイン処理が行われるみたい。 ドメインアカウントでログインを行うには、ローカルのアカウントがなければそのままでOK もしローカルにも同じアカウントがあるのなら #code(nonumber){{ administrator@<ドメイン> }} とする必要がある。 #code(nonumber){{ <ドメイン>\administrator }} は使えないみたい。