キュービック内でデスクトップマネージャをリモートで設定するためにSSHを介してXを渡す方法

キュービック内でデスクトップマネージャをリモートで設定するためにSSHを介してXを渡す方法

目的のデスクトップマネージャのメニュー、ウィンドウ、装飾、タスクバーの位置をCubicでリアルタイムに設定したいのですが、Cubic仮想環境で行うのが非常に楽だからです。以下では、キュービックでlxdeやxfceなどのデスクトップマネージャを設定したかったのですが、失敗したため、sshを介してX転送を有効にしようとしたことがわかります。解決策はありますか?

キューブ内:

root@cubic:~# /etc/init.d/ssh start
 * Starting OpenBSD Secure Shell server sshd                                                  sshd: no hostkeys available -- exiting.
                                                                                       [fail]
root@cubic:~# ssh-keygen -A
ssh-keygen: generating new host keys: RSA DSA ECDSA ED25519 

root@cubic:~# /etc/init.d/ssh start
 * Starting OpenBSD Secure Shell server sshd                                           [ OK ] 

root@cubic:~# adduser test
Adding user `test' ...
Adding new group `test' (1000) ...
Adding new user `test' (1000) with group `test' ...
Creating home directory `/home/test' ...
Copying files from `/etc/skel' ...
New password: 
Retype new password: 
passwd: password updated successfully
Changing the user information for test
Enter the new value, or press ENTER for the default
 Full Name []: 
 Room Number []: 
 Work Phone []: 
 Home Phone []: 
 Other []: 
Is the information correct? [Y/n] y

ホストオペレーティングシステムでは:

ziomario@Z390-AORUS-PRO-DEST:~$ ssh -Y [email protected] (host os IP Number)

The authenticity of host '192.168.1.4 (192.168.1.4)' can't be established.
This key is not known by any other names
Are you sure you want to continue connecting (yes/no/[fingerprint])? yes
Warning: Permanently added '192.168.1.4' (ED25519) to the list of known hosts.
[email protected]'s password: 
Permission denied, please try again.

ユーザーテストはホストOSではなくキュービックOSで実行されるため失敗しますが、ホストOSのIP番号は192.168.1.4です(キュービックにはありません)。そうすれば: ssh -Y[Eメール保護]ユーザーテストはキュービック内部にありますが、IP番号はホストOSにあるため、キュービック内部では再び失敗します。ホストOSでユーザーテストを作成し、ホストIP番号とユーザーテストを使用してXを渡そうとすると、ホストOSにインストールされているxfce4を設定できますが、これは私が望むものではありません。

ベストアンサー1

おすすめ記事