首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >身份验证失败: TImeout用于CentOS 7中的驾驶舱访问

身份验证失败: TImeout用于CentOS 7中的驾驶舱访问
EN

Server Fault用户
提问于 2022-03-01 18:12:44
回答 1查看 725关注 0票数 1

问题

当我尝试使用cockpit凭证登录到CentOS 7上的URL https://localhost:9090时,发现Authentication失败:超时值错误。已搜索网页寻找解决方案,但无法解决问题。

安装驾驶舱

的步骤

代码语言:javascript
复制
# yum install cockpit cockpit-dashboard
# systemctl enable --now cockpit.socket
# firewall-cmd --permanent --zone=public --add-service=cockpit
# firewall-cmd --reload

输出

防火墙-cmd-列表-全

代码语言:javascript
复制
target: default
  icmp-block-inversion: no
  interfaces: em1
  sources: 
  services: cockpit dhcpv6-client nfs rpc-bind ssh
  ports: 5901/tcp 944/tcp 944/udp 945/tcp 945/udp 946/udp 9090/tcp
  protocols: 
  masquerade: no
  forward-ports: 
  source-ports: 
  icmp-blocks: 
  rich rules: 

/var/log/消息输出

代码语言:javascript
复制
Mar  1 23:22:20 srv01 systemd: Starting Cockpit Web Service...
Mar  1 23:22:20 srv01 systemd: Started Cockpit Web Service.
Mar  1 23:22:20 srv01 cockpit-ws: Using certificate: /etc/cockpit/ws-certs.d/0-self-signed.cert
Mar  1 23:22:40 srv01 cockpit-session: pam_ssh_add: Identity added: /root/.ssh/id_rsa (/root/.ssh/id_rsa)
Mar  1 23:22:40 srv01 systemd: Created slice User Slice of root.
Mar  1 23:22:40 srv01 systemd-logind: New session 6 of user root.
Mar  1 23:22:40 srv01 systemd: Started Session 6 of user root.
Mar  1 23:22:41 srv01 journal: clutter_actor_set_size: assertion 'CLUTTER_IS_ACTOR (self)' failed
Mar  1 23:22:41 srv01 journal: clutter_actor_show: assertion 'CLUTTER_IS_ACTOR (self)' failed
Mar  1 23:23:10 srv01 cockpit-ws: cockpit-session: session timed out during authentication
Mar  1 23:23:10 srv01 org.gtk.vfs.Daemon: A connection to the bus can't be made
Mar  1 23:23:10 srv01 cockpit-ws: cockpit-session: authentication timed out
Mar  1 23:23:10 srv01 systemd-logind: Removed session 6.
Mar  1 23:23:10 srv01 systemd: Removed slice User Slice of root.
Mar  1 23:23:11 srv01 journal: clutter_actor_set_size: assertion 'CLUTTER_IS_ACTOR (self)' failed
Mar  1 23:23:11 srv01 journal: clutter_actor_show: assertion 'CLUTTER_IS_ACTOR (self)' failed

日志-f输出

代码语言:javascript
复制
Mar 01 23:22:20 srv01.vlsi.silicon.ac.in systemd[1]: Starting Cockpit Web Service...
Mar 01 23:22:20 srv01.vlsi.silicon.ac.in systemd[1]: Started Cockpit Web Service.
Mar 01 23:22:20 srv01.vlsi.silicon.ac.in cockpit-ws[6374]: Using certificate: /etc/cockpit/ws-certs.d/0-self-signed.cert
Mar 01 23:22:21 srv01.vlsi.silicon.ac.in rtkit-daemon[1123]: Supervising 1 threads of 1 processes of 1 users.
Mar 01 23:22:21 srv01.vlsi.silicon.ac.in rtkit-daemon[1123]: Supervising 1 threads of 1 processes of 1 users.
Mar 01 23:22:40 srv01.vlsi.silicon.ac.in cockpit-session[6430]: pam_ssh_add: Identity added: /root/.ssh/id_rsa (/root/.ssh/id_rsa)
Mar 01 23:22:40 srv01.vlsi.silicon.ac.in systemd[1]: Created slice User Slice of root.
Mar 01 23:22:40 srv01.vlsi.silicon.ac.in systemd-logind[1129]: New session 6 of user root.
Mar 01 23:22:40 srv01.vlsi.silicon.ac.in systemd[1]: Started Session 6 of user root.
Mar 01 23:22:40 srv01.vlsi.silicon.ac.in cockpit-session[6430]: pam_unix(cockpit:session): session opened for user root by (uid=0)
Mar 01 23:22:41 srv01.vlsi.silicon.ac.in gnome-shell[2736]: clutter_actor_set_size: assertion 'CLUTTER_IS_ACTOR (self)' failed
Mar 01 23:22:41 srv01.vlsi.silicon.ac.in gnome-shell[2736]: clutter_actor_show: assertion 'CLUTTER_IS_ACTOR (self)' failed
Mar 01 23:23:10 srv01.vlsi.silicon.ac.in cockpit-ws[6374]: cockpit-session: session timed out during authentication
Mar 01 23:23:10 srv01.vlsi.silicon.ac.in org.gtk.vfs.Daemon[6465]: A connection to the bus can't be made
Mar 01 23:23:10 srv01.vlsi.silicon.ac.in cockpit-session[6430]: pam_unix(cockpit:session): session closed for user root
Mar 01 23:23:10 srv01.vlsi.silicon.ac.in cockpit-ws[6374]: cockpit-session: authentication timed out
Mar 01 23:23:10 srv01.vlsi.silicon.ac.in systemd-logind[1129]: Removed session 6.
Mar 01 23:23:10 srv01.vlsi.silicon.ac.in systemd[1]: Removed slice User Slice of root.
Mar 01 23:23:11 srv01.vlsi.silicon.ac.in gnome-shell[2736]: clutter_actor_set_size: assertion 'CLUTTER_IS_ACTOR (self)' failed

使用火狐的驾驶舱登录

驾驶舱登录失败

EN

回答 1

Server Fault用户

发布于 2022-09-29 10:11:13

这个问题与源程序有关,您需要在conf文件中这样指定它们

代码语言:javascript
复制
[WebService]  
Origins = http://10.0.0.18 http://192.168.1.0 
AllowUnencrypted = yes  
票数 0
EN
页面原文内容由Server Fault提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://serverfault.com/questions/1095098

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档