LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 09-30-2019, 02:13 AM   #1
timl
Member
 
Registered: Jan 2009
Location: Sydney, Australia
Distribution: Fedora,CentOS
Posts: 750

Rep: Reputation: 156Reputation: 156
ssh -x timing out


Hi All, my main PC runs Fedora 29 I use X Windows to initiate programs on a Raspberry Pi 3
Quote:
ssh -X pi@10.1.1.91 "midori" &
This morning I upgraded raspbian on the Pi from stretch to buster. I achieved this by modifying source.lis and raspi.lis to reference buster rather than stretch then
Quote:
apt-get update
apt-get dist-upgrade
After a reboot I am experiencing a few problems. The first is that the X windows session is not stable. It dies after a period of time. I can't figure out the actual period of time. I hear there is a ForwardX11Timeout setting which I can add to .ssh/config but I have never used this in the past. I had a look in journalctl but nothing jumped out at me.

Recapping then, any suggestions why a remote X windows session to a recently upgraded Pi initiated from Fedora would time out/get lost?
 
Old 09-30-2019, 02:47 AM   #2
Turbocapitalist
LQ Guru
 
Registered: Apr 2005
Distribution: Linux Mint, Devuan, OpenBSD
Posts: 7,308
Blog Entries: 3

Rep: Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721
That would be in the SSH client's configuration and unrelated to the infamous systemd, though scope creep might see that change in future versions. See instead "man ssh_config" for the ForwardX11Timeout directive which defaults to 20 minutes. The manual does not say but I suspect that if it is set to 0 then X11 is allowed indefinitely.

However, the launch is done incorrectly. If you would like the client to go into the background, use the -f option:

Code:
ssh -f -X -l pi 10.1.1.91 "midori &"
Then the ampersand (&) will be optional. Either way, mind the quotes.

You may also be interested in ServerAliveCountMax and ServerAliveInterval.

Some settings can be made permanent in ~/.ssh/config:

Code:
Host 10.1.1.*
        User pi
        ForwardX11Timeout 0
        ServerAliveCountMax 3
        ServerAliveInterval 15

Host *
        TCPKeepAlive yes
 
1 members found this post helpful.
Old 09-30-2019, 03:09 AM   #3
timl
Member
 
Registered: Jan 2009
Location: Sydney, Australia
Distribution: Fedora,CentOS
Posts: 750

Original Poster
Rep: Reputation: 156Reputation: 156
thanks turbocapitalist. I'll research the suggestions you made.
 
Old 10-03-2019, 02:41 AM   #4
timl
Member
 
Registered: Jan 2009
Location: Sydney, Australia
Distribution: Fedora,CentOS
Posts: 750

Original Poster
Rep: Reputation: 156Reputation: 156
Updating this: the Raspberry Pi folks suggest an update path but don't recommend it. I just burned a new SD card and all is fine

https://www.raspberrypi.org/blog/bus...n-of-raspbian/
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
ssh connection timing out - Lenny out of the box SirSefu Linux - Newbie 4 12-17-2009 07:41 AM
SSH port binding and timing out - some questions eludlow Linux - Networking 2 10-23-2008 09:53 AM
how to start timing and print the timing result on portions of java codes ?? alred Programming 2 05-15-2006 10:00 AM
SSH remote command not timing out tajsss Other *NIX 5 04-28-2005 06:57 AM
SSH timing out/not connecting NeccoWolf Linux - Networking 2 01-26-2003 02:01 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:14 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration