X-forwarding stops working after a while
Darren Tucker
dtucker at zip.com.au
Sun Jan 3 13:03:13 AEDT 2016
On Fri, Jan 1, 2016 at 10:16 PM, Yuri <yuri at rawbw.com> wrote:
> I connect from host into the guest VM with X-forwarding (ssh -X), so that
> programs launched in the VM will run on the host display.
>
> X-forwarding works first, but after a while it stops working. Connection
> (from inside of the VM) on the corresponding port (6010 or similar) is
> immediately closed by the foreign host. Ssh connection itself is okay
> though. Reconnecting ssh helps, but later the same thing repeats.
By default ssh will request an untrusted xauth cookie that expires
after 20 minutes. You can change that with ForwardX11Timeout in
ssh_config(5) or request a trusted cookie that doesn't expire
(ForwardX11Trusted=yes or ssh -Y).
--
Darren Tucker (dtucker at zip.com.au)
GPG key 8FF4FA69 / D9A3 86E9 7EEE AF4B B2D4 37C9 C982 80C7 8FF4 FA69
Good judgement comes with experience. Unfortunately, the experience
usually comes from bad judgement.
More information about the openssh-unix-dev
mailing list