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
parv/freebsd
parv.0zero9+freebsd at gmail.com
Thu Mar 11 02:25:42 UTC 2021
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.
More information about the freebsd-questions
mailing list