0
点赞
收藏
分享

微信扫一扫

CentOS与Xshell建立连接,/usr/bin/xauth: file /home/bigdata/.Xauthority does not exist 解决


首先:从VMware中打开CentOS7、打开Xshell

1、在登录CentOS7后,在桌面鼠标右键打开终端

CentOS与Xshell建立连接,/usr/bin/xauth: file /home/bigdata/.Xauthority does not exist 解决_centos

2、输入 ip a 可查看CenOS虚拟机的IP地址

CentOS与Xshell建立连接,/usr/bin/xauth: file /home/bigdata/.Xauthority does not exist 解决_错误提示_02

 3、到Xshell7中,在左侧会话管理器中 鼠标右键可选择 新建 会话

CentOS与Xshell建立连接,/usr/bin/xauth: file /home/bigdata/.Xauthority does not exist 解决_xshell_03

CentOS与Xshell建立连接,/usr/bin/xauth: file /home/bigdata/.Xauthority does not exist 解决_右键_04

 

CentOS与Xshell建立连接,/usr/bin/xauth: file /home/bigdata/.Xauthority does not exist 解决_centos_05

CentOS与Xshell建立连接,/usr/bin/xauth: file /home/bigdata/.Xauthority does not exist 解决_右键_06

 

CentOS与Xshell建立连接,/usr/bin/xauth: file /home/bigdata/.Xauthority does not exist 解决_xshell_07

CentOS与Xshell建立连接,/usr/bin/xauth: file /home/bigdata/.Xauthority does not exist 解决_centos_08

 

可以看到出现错误提示:

/usr/bin/xauth:  file /home/bigdata/.Xauthority does not exist

错误原因:是因为添加用户时没有授权对应的目录。

解决方法:

chown username:username -R /home/user_dir
# username是你安装虚拟机时创建的用户,比如我的是bigdata,
# user_dir就是进入home目录下的第一个目录bigdata,
chown bigdata:bigdata -R /home/bigdata

CentOS与Xshell建立连接,/usr/bin/xauth: file /home/bigdata/.Xauthority does not exist 解决_xshell_09

 此时再登录链接时不再出现错误提示

CentOS与Xshell建立连接,/usr/bin/xauth: file /home/bigdata/.Xauthority does not exist 解决_错误提示_10

 

 

举报

相关推荐

0 条评论