Why does ssh X forwarding timeout after a while?
--------------------------------------------------
Become or hire the top 3% of the developers on Toptal https://topt.al/25cXVn
--------------------------------------------------
Music by Eric Matyas
https://www.soundimage.org
Track title: Realization
--
Chapters
00:00 Question
00:53 Accepted answer (Score 29)
01:25 Answer 2 (Score 20)
01:52 Thank you
--
Full question
https://superuser.com/questions/407218/w...
--
Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...
--
Tags
#ssh #x11forwarding
#avk47
Become or hire the top 3% of the developers on Toptal https://topt.al/25cXVn
--------------------------------------------------
Music by Eric Matyas
https://www.soundimage.org
Track title: Realization
--
Chapters
00:00 Question
00:53 Accepted answer (Score 29)
01:25 Answer 2 (Score 20)
01:52 Thank you
--
Full question
https://superuser.com/questions/407218/w...
--
Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...
--
Tags
#ssh #x11forwarding
#avk47
ACCEPTED ANSWER
Score 29
The default ForwardX11Timeout
is 20 minutes for ssh -X
, but you can set it to something large (e.g. 7d
for 7 days) in .ssh/config
"Trusted" X11 forwarding via ssh -Y
actually enables potentially nasty things like keystroke monitoring and screen grabs.
ANSWER 2
Score 20
Using -X
, X11 forwarding is enabled in "Untrusted" mode, making use of various X11 security extensions, including a time-limited Xauth cookie.
Use -Y
to enable "Trusted" mode for X11, which will enable complete access to your X11 server.