XDMCP fatal error: Session declined Maximum number of open sessions from your host reached

17 篇文章 0 订阅

http://www.starnet.com/xwin32kb/Session_Declined_Maximum_Number_of_Sessions_Reached

Increase max number of sessions on Linux, no more sessions allowed

Sometimes a host will say no more connections are allowed.

XDMCP fatal error: Session declined Maximum number of open sessions from your host reached

This is usually caused by a router using NAT. The problem is the host thinks the router is a Xserver trying to connect and because several users might be connecting to the host through the router, the host stops allowing the router to open new sessions. The fix for this is to increase the Displays per host on your Linux or UNIX host.

Under Linux, this setting is in the /etc/X11/gdm/gdm.conf file and the /etc/kde/kdm/kdmrc file. Here’s the part of the file(s) you need to look at:


[xdmcp]
# Distributions: Ship with this off. It is never a safe thing to leave
# out on the net. Alternatively you can set up /etc/hosts.allow and
# /etc/hosts.deny to only allow say local access.
Enable=true
HonorIndirect
=true
MaxPending
=4
MaxPendingIndirect
=4
MaxSessions
=16
MaxWait
=15
MaxWaitIndirect
=15
DisplaysPerHost
=2
Port
=177
# Willing script, none is shipped and by default we'll send
# hostname system id
Willing=/etc/X11/gdm/Xwilling

Increasing DisplaysPerHost will allow more users to connect before this error happens.

/etc/X11/gdm/gdm.conf configures more host connections for Gnome.

/etc/kde/kdm/kdmrc file configures more host connections for KDE.

If there are too many sessions, rebooting the host will fix this problem as well. However, the problem will return once the Displays per host is exceeded again.


http://sdhsdhsdhsdh.iteye.com/blog/741643

最近搞XDMCP方式远程登录ubuntu,然后经常出这个问题: 
XDMCP fatal error: Session declined Maximum number of open sessions from your host.. 
导致不能登录,在不懈努力下终于在X-win32的官网找到了原因及解决方案: 
This is usually caused by a router using NAT. The problem is the host thinks the router is a Xserver trying to connect and because several users might be connecting to the host through the router, the host stops allowing the router to open new sessions. The fix for this is to increase the Displays per host on your Linux or UNIX host. 

Under Linux, this setting is in the /etc/gdm/gdm.schemas file and the /etc/kde/kdm/kdmrc file. Here’s the part of the file(s) you need to look at: 

Xml代码   收藏代码
  1.  <schema>  
  2.   <key>xdmcp/DisplaysPerHost</key>  
  3.   <signature>i</signature>  
  4.   <default>1</default>  
  5. </schema>   


Increasing DisplaysPerHost will allow more users to connect before this error happens. 

/etc/gdm/gdm.schemas configures more host connections for Gnome. 
/etc/kde/kdm/kdmrc file configures more host connections for KDE. 

If there are too many sessions, rebooting the host will fix this problem as well. However, the problem will return once the Displays per host is exceeded again. 

  • 1
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值