SSH登录Ubuntu速度缓慢/usr/bin/xauth: timeout in locking authority file /home/book/.Xauthority
现象
ssh登录Ubuntu时,速度很慢,输出信息如下:
┌────────────────────────────────────────────────────────────────────┐│ • MobaXterm 20.3 • ││ (SSH client, X-server and networking tools) ││ ││ ➤ SSH session to book@192.168.8.191 ││ • SSH compression : ✔ ││ • SSH-browser : ✔ ││ • X11-forwarding : ✔ (remote display is forwarded through SSH) ││ • DISPLAY : ✔ (automatically set on remote server) ││ ││ ➤ For more info, ctrl+click on help or visit our website │└────────────────────────────────────────────────────────────────────┘Welcome to Ubuntu 18.04.2 LTS (GNU/Linux 5.4.0-52-generic x86_64)* Documentation: https://help.ubuntu.com* Management: https://landscape.canonical.com* Support: https://ubuntu.com/advantage* Introducing self-healing high availability clustering for MicroK8s!Super simple, hardened and opinionated Kubernetes for production.https://microk8s.io/high-availability* Canonical Livepatch is available for installation.- Reduce system reboots and improve kernel security. Activate at:https://ubuntu.com/livepatch219 packages can be updated.
15 updates are security updates.New release '20.04.1 LTS' available.
Run 'do-release-upgrade' to upgrade to it.Your Hardware Enablement Stack (HWE) is supported until April 2023.
Last login: Wed Nov 4 20:51:41 2020 from 192.168.8.116
/usr/bin/xauth: timeout in locking authority file /home/book/.Xauthority
book@100ask:~$
可以看到出错信息为:
/usr/bin/xauth: timeout in locking authority file /home/book/.Xauthority
解决方案
查看当前用户读写权限:
(备注,此处用户是book)
book@100ask:~$ cd ..
book@100ask:/home$ ll
total 36
drwxr-xr-x 6 root root 4096 Nov 3 20:37 ./
drwxr-xr-x 26 root root 4096 Nov 3 20:30 ../
dr-xr-xr-x 39 book book 4096 Oct 29 04:05 book/
drwxr-xr-x 24 gerrit gerrit 4096 Nov 4 04:34 gerrit/
drwx------ 2 root root 16384 Feb 20 2019 lost+found/
drwxr-xr-x 20 nano nano 4096 Nov 4 20:48 nano/
book@100ask:/home$
我的Ubuntu有三个用户,分别为 book 、gerrit、nano
从上图结果可以看出,book
文件夹缺少写w
权限
解决方案:
book@100ask:/home$ sudo chmod 755 book/
book@100ask:/home$ ll
total 36
drwxr-xr-x 6 root root 4096 Nov 3 20:37 ./
drwxr-xr-x 26 root root 4096 Nov 3 20:30 ../
drwxr-xr-x 39 book book 4096 Oct 29 04:05 book/
drwxr-xr-x 24 gerrit gerrit 4096 Nov 4 04:34 gerrit/
drwx------ 2 root root 16384 Feb 20 2019 lost+found/
drwxr-xr-x 20 nano nano 4096 Nov 4 20:48 nano/
book@100ask:/home$
再次ssh登录到book用户,报错消失,也不会卡顿:
┌────────────────────────────────────────────────────────────────────┐│ • MobaXterm 20.3 • ││ (SSH client, X-server and networking tools) ││ ││ ➤ SSH session to book@192.168.8.191 ││ • SSH compression : ✔ ││ • SSH-browser : ✔ ││ • X11-forwarding : ✔ (remote display is forwarded through SSH) ││ • DISPLAY : ✔ (automatically set on remote server) ││ ││ ➤ For more info, ctrl+click on help or visit our website │└────────────────────────────────────────────────────────────────────┘Welcome to Ubuntu 18.04.2 LTS (GNU/Linux 5.4.0-52-generic x86_64)* Documentation: https://help.ubuntu.com* Management: https://landscape.canonical.com* Support: https://ubuntu.com/advantage* Introducing self-healing high availability clustering for MicroK8s!Super simple, hardened and opinionated Kubernetes for production.https://microk8s.io/high-availability* Canonical Livepatch is available for installation.- Reduce system reboots and improve kernel security. Activate at:https://ubuntu.com/livepatch219 packages can be updated.
15 updates are security updates.New release '20.04.1 LTS' available.
Run 'do-release-upgrade' to upgrade to it.Your Hardware Enablement Stack (HWE) is supported until April 2023.
Last login: Wed Nov 4 20:55:15 2020 from 192.168.8.116
book@100ask:~$
book@100ask:~$
此问题同时还会导致,Ubuntu无法进入book用户的Gnome界面,而其他用户Gnome界面正常!
SSH登录Ubuntu速度缓慢/usr/bin/xauth: timeout in locking authority file /home/book/.Xauthority相关推荐
- /usr/bin/xauth: timeout in locking authority file /home/db/oracle/.Xauthority
新安装的redhat server 6.4,登录用户非常慢,提示"/usr/bin/xauth: timeout in locking authority file /home/db/ora ...
- Liunx创建新用户登录异常:/usr/bin/xauth: error/timeout in locking authority file /home/liuqidong/.Xauthority
Liunx创建新用户登录异常:/usr/bin/xauth: error/timeout in locking authority file /home/liuqidong/.Xauthority 问 ...
- Linux创建用户后,登录报错/usr/bin/xauth: file /home/user/.Xauthority does not exist
错误信息如下: /usr/bin/xauth: file /home/user/.Xauthority does not exist 错误原因: 是因为添加用户时没有授权对应的目录,仅仅执行了user ...
- 【庖丁解牛】xshell链接服务器 /usr/bin/xauth: file /root/.Xauthority does not exist
错误复现 xshell连接服务器的时候提示 /usr/bin/xauth: file /root/.Xauthority does not exist 原因分析 一般是因为新服务刚安装好,在root下 ...
- 解决ssh登录linux速度慢的问题(以centos7为例)
解决ssh登录linux速度慢的问题(以centos7为例) 参考文章: (1)解决ssh登录linux速度慢的问题(以centos7为例) (2)https://www.cnblogs.com/ly ...
- ssh登录ubuntu
ssh登录ubuntu 要SSH登录ubuntu 输入ps -e|grep ssh查看是否有sshd 安装openssh-server sudo apt-get install openssh-ser ...
- linux 运行python 看不到异常信息_Linux异常解决:/usr/bin/env python\r no such file or directory...
我有两台电脑,一台win10系统,一台Liunx系统.今天在win10上面写了一个ROS程序,拷贝到Linux上面,执行rosrun命令出现异常信息/usr/bin/env python\r no s ...
- usr/bin/ld: i386 architecture of input file XXX.a( xxx.o) is incompatible with i386:x86-64
问题:usr/bin/ld: i386 architecture of input file XXX.a( xxx.o) is incompatible with i386:x86-64 output ...
- 在配置SSH免密登录时报错:/usr/bin/ssh-copy-id: ERROR: failed to open ID file '/root/.pub': 没有那个文件或目录
问题 [root@hadoop1 sbin]# ssh-copy-id hadoop1/usr/bin/ssh-copy-id: ERROR: failed to open ID file '/roo ...
最新文章
- 中国民航局:2019年春运中国民航旅客运输量将创历史新高
- Java异常实战——OutOfMemoryError
- Python中的shape和reshape()
- 逆向工程(Reverse Engineering)
- 牛津大学231页博士论文全面阐述神经微分方程(NDE),Jeff Dean点赞
- Java se之动态代理
- 前端学习(730):函数的概念
- 微信小程序的不同函数调用的几种方法
- 5003.c++定义hpp文件
- [渝粤教育] 中国地质大学 会计专业英语 复习题
- @Autowired与@Resource
- 台式计算机内存是什么问题,台式电脑提示内存不足怎么回事
- 20170831_安装软件
- Excel根据公式生成插入语句
- sd卡插入计算机要格式化,内存卡一直提示格式化,内存卡插电脑要格式化-
- vue 自定义marquee横向无缝滚动组件
- Less入门以及一些前端面试题
- VirtualBox无法安装增强工具-共享复制粘贴功能
- 线性回归分析——高尔顿数据集
- 7月火影忍者服务器维护,火影忍者手游7月8日更新到几点?7.8停服更新维护公告...