Date: Wed, 10 Mar 2021 16:24:08 -1000 From: "parv/freebsd" <parv.0zero9+freebsd@gmail.com> To: freebsd-questions@freebsd.org Subject: Switched to VNC, after testing ForwardX11Timeout - Re: Remote (CentOS 8) X11 clients stop spawning on local (FreeBSD 12) X11 server over ssh after some time Message-ID: <CABObuOqM50Z=y0niC_m1scx98pS2U3CtEUbcaHRB3kwKeY%2BUWg@mail.gmail.com> In-Reply-To: <CABObuOoq=ma99PNVN2RyF1hgrHF4ynuQCzPOMRsBY1W0%2B04zmA@mail.gmail.com> References: <CABObuOr6_WFb10YpcLk2wW2Vhbcd%2BG2FT78BpFwQV9-FuV_R2A@mail.gmail.com> <CABObuOoq=ma99PNVN2RyF1hgrHF4ynuQCzPOMRsBY1W0%2B04zmA@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, Feb 28, 2021 at 11:19 PM parv/freebsd wrote: > On Sun, Feb 28, 2021 at 8:18 PM parv/freebsd wrote: > > I had started ssh -X connection 2+ days ago in X11 on FreeBSD 12-STABLE to >> CentOS 8. >> When I tried to run Firefox (on CentOS), it did not start & blurted ... >> >> Unable to init server: Broadway display type is not supported: >> localhost:13.0 >> Error: cannot open display: localhost:13.0 >> > ... > > So, "ssh -vv -X" shows "Rejected X11 connection after ForwardX11Timeout > expired", > I do not see that option in /etc/ssh/ on CentOS or FreeBSD. Hold on ... > > This ... > > > https://security.stackexchange.com/questions/147293/openssh-is-setting-a-long-forwardx11timeout-better-than-forwardx11trusted > > ... points to ... > > https://github.com/openssh/openssh-portable/commit/1ab6a51 > > ... which makes "ForwardX11Timeout" to be ssh client option. On to testing > ... > The X11 connection seemed to have stayed after setting the option in ~/.ssh/config ... Host * ... ForwardX11Timeout 345600 In any case, I am now a SSH-VNC tunnel convert (TigerVNC installed on both ends) ... HowTo: Tunneling VNC Connections over SSH, https://www.cyberciti.biz/tips/tunneling-vnc-connections-over-ssh-howto.html ... starting & setting up VNC server on CentOS side was somewhat convoluted ... novncserver on CentOS8 #1161, comment by astronomerdave, Dec 15, 2020, https://github.com/TigerVNC/tigervnc/issues/1161#issuecomment-745569986 The interaction (xterm almost all the time) is certainly faster now over 100 Mb/s connection compared to plain X11 connection. In the latter case -- still subject to time out -- using XLFD (X Logical Font Description) font instead of TTF[0] helped some. - parv 0- If true type font has been enabled locally, then xterm can be started without ... xterm -xrm 'XTerm.VT100.renderFont:False' \ -fn '-misc-liberation mono-bold-r-normal--24-0-0-0-m-0-iso10646-1' ... and/or set .renderFont & .font[1-6]? resources in in ~/.Xresources.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CABObuOqM50Z=y0niC_m1scx98pS2U3CtEUbcaHRB3kwKeY%2BUWg>