Why does ssh X forwarding timeout after a while?
--------------------------------------------------
Hire the world's top talent on demand or became one of them at Toptal: https://topt.al/25cXVn
and get $2,000 discount on your first invoice
--------------------------------------------------
Take control of your privacy with Proton's trusted, Swiss-based, secure services.
Choose what you need and safeguard your digital life:
Mail: https://go.getproton.me/SH1CU
VPN: https://go.getproton.me/SH1DI
Password Manager: https://go.getproton.me/SH1DJ
Drive: https://go.getproton.me/SH1CT
Music by Eric Matyas
https://www.soundimage.org
Track title: Puzzle Game 2 Looping
--
Chapters
00:00 Why Does Ssh X Forwarding Timeout After A While?
00:41 Answer 1 Score 20
01:01 Accepted Answer Score 29
01:22 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
Hire the world's top talent on demand or became one of them at Toptal: https://topt.al/25cXVn
and get $2,000 discount on your first invoice
--------------------------------------------------
Take control of your privacy with Proton's trusted, Swiss-based, secure services.
Choose what you need and safeguard your digital life:
Mail: https://go.getproton.me/SH1CU
VPN: https://go.getproton.me/SH1DI
Password Manager: https://go.getproton.me/SH1DJ
Drive: https://go.getproton.me/SH1CT
Music by Eric Matyas
https://www.soundimage.org
Track title: Puzzle Game 2 Looping
--
Chapters
00:00 Why Does Ssh X Forwarding Timeout After A While?
00:41 Answer 1 Score 20
01:01 Accepted Answer Score 29
01:22 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.