我在按照《鸟哥的linux私房菜服务器篇(第三版)》11.3.3 用户系统为 Linux 的登入方式进行实验时出现了XDMCP fatal error: Session declined Maximum number of open sesions from your host reached
我上网查了下这是因为路由器使用了nat的原因造成的。问题出现的原因是主机认为路由器是一个X的服务器并尝试去连接,而Xserver可能正在通过路由器来连接主机,主机又禁止了路由器来建立新的会话。解决这个问题的办法是提高你的linux或unix主机上的对每个主机的显示数。
具体操作:
#vi /etc/gdm/custom.conf
# GDM configuration storage [security] DisallowTCP=false AllowRemoteRoot=true [xdmcp] Enable=true DisplaysPerHost=5 #在[xdmcp]里添加这一句
参考资料:
http://www.starnet.com/xwin32kb/Session_Declined_Maximum_Number_of_Sessions_Reached
http://blog.chinaunix.net/uid-12032884-id-3414551.html
转载于:https://blog.51cto.com/soarwilldo/1282880