我想在cubic中即時配置所需桌面管理器的選單、視窗、裝飾、工作列位置,因為我發現在cubic虛擬環境中這樣做非常舒服。下面您可以看到,我嘗試透過 ssh 啟用 X 轉發,因為我想在cubic 內配置像 lxde 或 xfce 這樣的桌面管理器,但失敗了。你有解決方法嗎?
立方內:
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.
它失敗是因為使用者測試不是在主機作業系統上而是在cubic作業系統上,但192.168.1.4是主機作業系統的IP號碼(cubic沒有)。如果我做 :ssh-Y[電子郵件受保護]在cubic內部,它會再次失敗,因為使用者測試在cubic內部,但IP號碼在主機作業系統上。如果我在主機作業系統上建立使用者測試,並且我將嘗試使用主機 IP 號碼和使用者測試轉送 X,我將能夠設定安裝在主機作業系統上的 xfce4,但這不是我想要的。