ssh登录缓慢,使用ssh -v登录后,显示在 “pledge: network” 处卡顿:
2024-09-04 08:15:12
当登录一台服务器时,每次输入密码之后都要等很久才会得到命令提示符,尝试修改了sshd_config中的UseDNS no,但效果依然不好。
ssh -v 192.168.12.43
This is probably an issue with D-Bus and systemd. If the dbus service is restarted for some reason, you will also need to restart systemd-logind.
You can check if this is the issue by opening the ssh daemon log (on Ubuntu it should be /var/log/auth.log) and check if it has these lines:
注:CentOS 下查看
cat /var/log/secure
sshd[2721]: pam_systemd(sshd:session): Failed to create session: Connection timed out
如果找到以上信息,则在服务端执行:
systemctl restart systemd-logind
完美解决!!
最新文章
- Django URL的命令空间
- IOS Animation-CAKeyframeAnimation例子(简单动画实现)
- 29 GroupSock(NetAddressList)——live555源码阅读(四)网络
- Android 模拟器检测
- 怎么给OCR文字识别软件设置正确的扫描分辨率
- C#中的static、readonly与const的比较
- NopCmmerce Area前后台分离
- android115 自定义控件
- 统计学习导论:基于R应用——第四章习题
- Solr In Action 笔记(1) 之 Key Solr Concepts
- Android学习路线(二十)运用Fragment构建动态UI
- POJ输出状态的逻辑。
- ViewState的用法
- Jmeter+Ant+Jenkins接口自动化测试(二)_测试方案设计及jmeter脚本开发
- 在Apache中运行Python WSGI应用
- 用samba来创建windows下的文件共享
- 算法工程师<;编程题>;
- js事件冒泡机制
- 在 Angular6 中使用 HTTP 请求服务端数据
- 怎么通过tomcat的catalina.out查看日志