Create a blank .Xauthority file in the home directory of the user you are connecting with. Be sure to log in as that user (either graphically, or via the terminal), then run:
touch ~/.Xauthority
chmod 600 ~/.Xauthority
本文介绍如何为特定用户在Linux环境中创建.Xauthority文件,并确保其权限正确设置,这对于远程图形界面会话至关重要。
Create a blank .Xauthority file in the home directory of the user you are connecting with. Be sure to log in as that user (either graphically, or via the terminal), then run:
touch ~/.Xauthority
chmod 600 ~/.Xauthority

被折叠的 条评论
为什么被折叠?