当登录一台服务器时,每次输入密码之后都要等很久才会得到命令提示符,尝试修改了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
 
完美解决!!

最新文章

  1. Django URL的命令空间
  2. IOS Animation-CAKeyframeAnimation例子(简单动画实现)
  3. 29 GroupSock(NetAddressList)——live555源码阅读(四)网络
  4. Android 模拟器检测
  5. 怎么给OCR文字识别软件设置正确的扫描分辨率
  6. C#中的static、readonly与const的比较
  7. NopCmmerce Area前后台分离
  8. android115 自定义控件
  9. 统计学习导论:基于R应用——第四章习题
  10. Solr In Action 笔记(1) 之 Key Solr Concepts
  11. Android学习路线(二十)运用Fragment构建动态UI
  12. POJ输出状态的逻辑。
  13. ViewState的用法
  14. Jmeter+Ant+Jenkins接口自动化测试(二)_测试方案设计及jmeter脚本开发
  15. 在Apache中运行Python WSGI应用
  16. 用samba来创建windows下的文件共享
  17. 算法工程师<编程题>
  18. js事件冒泡机制
  19. 在 Angular6 中使用 HTTP 请求服务端数据
  20. 怎么通过tomcat的catalina.out查看日志

热门文章

  1. 原生vue实现表格的编辑,包括单元格合并,拆分,删除行/列, 添加行/列
  2. 使用AWS、Docker与Rancher提供弹性的生产级服务
  3. centos6 安装tensorflow
  4. 使用throw和throws 引发异常
  5. Xib设置label自动换行和Label的顶部对齐
  6. Mac 操作小技巧
  7. Android UI组件:布局管理器
  8. django进阶版1
  9. LeetCode 19——删除链表的倒数第N个节点(JAVA)
  10. centos 秘钥登录